Don't run the disconnect routine twice, Salanto

I should not be allowed to code this late
This commit is contained in:
Salanto 2022-06-15 23:13:44 +02:00 committed by Rosemary Witchaven
parent 883ac90511
commit c79cdf3a4c

View File

@ -227,8 +227,6 @@ void Server::clientConnected()
client->deleteLater(); client->deleteLater();
}); });
connect(l_socket, &NetworkSocket::handlePacket, client, &AOClient::handlePacket); 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 AOPacket decryptor("decryptor", {"NOENCRYPT"}); // This is the infamous workaround for
// tsuserver4. It should disable fantacrypt // tsuserver4. It should disable fantacrypt
@ -308,8 +306,6 @@ void Server::ws_clientConnected()
l_socket->deleteLater(); l_socket->deleteLater();
}); });
connect(l_socket, &NetworkSocket::handlePacket, client, &AOClient::handlePacket); 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 AOPacket decryptor("decryptor", {"NOENCRYPT"}); // This is the infamous workaround for
// tsuserver4. It should disable fantacrypt // tsuserver4. It should disable fantacrypt