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
2 changed files with 0 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue