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