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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user