From c79cdf3a4caf307fda28102e622cf5083d65d39d Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Wed, 15 Jun 2022 23:13:44 +0200 Subject: [PATCH] Don't run the disconnect routine twice, Salanto I should not be allowed to code this late --- core/src/server.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/src/server.cpp b/core/src/server.cpp index 28b443a..a74b829 100644 --- a/core/src/server.cpp +++ b/core/src/server.cpp @@ -227,8 +227,6 @@ void Server::clientConnected() client->deleteLater(); }); connect(l_socket, &NetworkSocket::handlePacket, client, &AOClient::handlePacket); - connect(l_socket, &NetworkSocket::clientDisconnected, - client, &AOClient::clientDisconnected); AOPacket decryptor("decryptor", {"NOENCRYPT"}); // This is the infamous workaround for // tsuserver4. It should disable fantacrypt @@ -308,8 +306,6 @@ void Server::ws_clientConnected() l_socket->deleteLater(); }); connect(l_socket, &NetworkSocket::handlePacket, client, &AOClient::handlePacket); - connect(l_socket, &NetworkSocket::clientDisconnected, - client, &AOClient::clientDisconnected); AOPacket decryptor("decryptor", {"NOENCRYPT"}); // This is the infamous workaround for // tsuserver4. It should disable fantacrypt