mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
sanity checks; server crash fix
This commit is contained in:
parent
a8e9501dad
commit
0603b3dafd
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue