mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-09 11:04:39 +02:00
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:
parent
cba7e2dc36
commit
8cf0c2029c
@ -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) {
|
||||
|
@ -148,8 +148,6 @@ class ServerPingTask : public Task {
|
||||
int online = client.getOnlinePlayers();
|
||||
qDebug() << "Online players: " << online;
|
||||
m_server.m_currentPlayers = online;
|
||||
|
||||
client.close();
|
||||
});
|
||||
resolver->ping();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user