mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 14:50:26 -08:00
sanity checks; server crash fix
This commit is contained in:
@@ -65,8 +65,7 @@ void Server::closeOldSession(const QString &playerName)
|
||||
}
|
||||
if (session) {
|
||||
qDebug() << "found";
|
||||
removeClient(session);
|
||||
delete session;
|
||||
delete session; // ~Server_ProtocolHandler() will call Server::removeClient
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user