No need to close the socket, it is done automatically

https://doc.qt.io/qt-6/qtcpsocket.html#dtor.QTcpSocket
This commit is contained in:
iTrooz
2024-11-17 18:51:57 +01:00
parent cba7e2dc36
commit 8cf0c2029c
2 changed files with 0 additions and 6 deletions
-4
View File
@@ -95,10 +95,6 @@ public:
return doc.object();
}
void close() {
socket.close();
}
private:
// From https://wiki.vg/Protocol#VarInt_and_VarLong
void writeVarInt(QByteArray &data, int value) {