minor fix
This commit is contained in:
parent
59e9416f57
commit
e51aa20420
1 changed files with 8 additions and 2 deletions
|
@ -25,8 +25,14 @@ 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();
|
||||||
p->setProtocolHandler(0);
|
Server_Game *g = gameIterator.value().first;
|
||||||
|
Server_Player *p = gameIterator.value().second;
|
||||||
|
|
||||||
|
if (authState == UnknownUser)
|
||||||
|
g->removePlayer(p);
|
||||||
|
else
|
||||||
|
p->setProtocolHandler(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
QMapIterator<QString, Server_ChatChannel *> chatChannelIterator(chatChannels);
|
QMapIterator<QString, Server_ChatChannel *> chatChannelIterator(chatChannels);
|
||||||
|
|
Loading…
Reference in a new issue