do thing properly hehheheheh

This commit is contained in:
scatterflower 2020-09-04 14:39:21 -05:00
parent 20276891e6
commit 85b3b1fe14
3 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

@ -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() {}

View File

@ -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();