more mutexes

This commit is contained in:
Max-Wilhelm Bruker
2011-03-22 22:46:15 +01:00
parent 51269f4b91
commit eca941201d
5 changed files with 16 additions and 4 deletions

View File

@@ -22,10 +22,6 @@ Server_ProtocolHandler::Server_ProtocolHandler(Server *_server, QObject *parent)
Server_ProtocolHandler::~Server_ProtocolHandler()
{
// The socket has to be removed from the server's list before it is removed from the game's list
// so it will not receive the game update event.
server->removeClient(this);
QMapIterator<int, Server_Room *> roomIterator(rooms);
while (roomIterator.hasNext())
roomIterator.next().value()->removeClient(this);