drop disconnected spectators from games instead of keeping them alive
This commit is contained in:
parent
57f9e2c3b4
commit
657f97680a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ Server_ProtocolHandler::~Server_ProtocolHandler()
|
|||
Server_Game *g = gameIterator.value().first;
|
||||
Server_Player *p = gameIterator.value().second;
|
||||
|
||||
if (authState == UnknownUser)
|
||||
if ((authState == UnknownUser) || p->getSpectator())
|
||||
g->removePlayer(p);
|
||||
else
|
||||
p->setProtocolHandler(0);
|
||||
|
|
Loading…
Reference in a new issue