mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-23 07:28:24 -08:00
minor fix
This commit is contained in:
@@ -25,7 +25,13 @@ Server_ProtocolHandler::~Server_ProtocolHandler()
|
|||||||
|
|
||||||
QMapIterator<int, QPair<Server_Game *, Server_Player *> > gameIterator(games);
|
QMapIterator<int, QPair<Server_Game *, Server_Player *> > gameIterator(games);
|
||||||
while (gameIterator.hasNext()) {
|
while (gameIterator.hasNext()) {
|
||||||
Server_Player *p = gameIterator.next().value().second;
|
gameIterator.next();
|
||||||
|
Server_Game *g = gameIterator.value().first;
|
||||||
|
Server_Player *p = gameIterator.value().second;
|
||||||
|
|
||||||
|
if (authState == UnknownUser)
|
||||||
|
g->removePlayer(p);
|
||||||
|
else
|
||||||
p->setProtocolHandler(0);
|
p->setProtocolHandler(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user