do thing properly hehheheheh
This commit is contained in:
parent
20276891e6
commit
85b3b1fe14
@ -31,7 +31,6 @@ class AOClient : public QObject {
|
||||
public:
|
||||
AOClient(Server* p_server, QTcpSocket* p_socket, QObject* parent = nullptr);
|
||||
~AOClient();
|
||||
void cleanup();
|
||||
|
||||
QString getHwid();
|
||||
void setHwid(QString p_hwid);
|
||||
|
@ -64,7 +64,6 @@ void AOClient::clientDisconnected()
|
||||
false;
|
||||
server->updateCharsTaken(server->areas[current_area]);
|
||||
}
|
||||
cleanup();
|
||||
}
|
||||
|
||||
void AOClient::handlePacket(AOPacket packet)
|
||||
@ -302,9 +301,6 @@ void AOClient::setHwid(QString p_hwid)
|
||||
|
||||
QString AOClient::getIpid() { return ipid; }
|
||||
|
||||
void AOClient::cleanup() {
|
||||
socket->disconnectFromHost();
|
||||
AOClient::~AOClient() {
|
||||
socket->deleteLater();
|
||||
}
|
||||
|
||||
AOClient::~AOClient() {}
|
||||
|
@ -136,7 +136,6 @@ AOClient* Server::getClient(QString ipid)
|
||||
Server::~Server()
|
||||
{
|
||||
for (AOClient* client : clients) {
|
||||
client->cleanup();
|
||||
client->deleteLater();
|
||||
}
|
||||
server->deleteLater();
|
||||
|
Loading…
Reference in New Issue
Block a user