sanity checks; server crash fix

This commit is contained in:
Max-Wilhelm Bruker
2009-12-08 00:46:38 +01:00
parent a8e9501dad
commit 0603b3dafd
3 changed files with 9 additions and 2 deletions

View File

@@ -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
}
}