1
0
Fork 0

(svn r19869) -Fix [FS#3819]: when a connection gets lost and a game with AIs was loaded the client might crash due to the AIs not being loaded while the game loop is executed

release/1.1
rubidium 2010-05-20 18:54:14 +00:00
parent 63a416cc59
commit 52b211f939
1 changed files with 5 additions and 2 deletions

View File

@ -936,7 +936,10 @@ void NetworkDisconnect(bool blocking)
NetworkClose(); NetworkClose();
} }
/* Receives something from the network */ /**
* Receives something from the network.
* @return true if everthing went fine, false when the connection got closed.
*/
static bool NetworkReceive() static bool NetworkReceive()
{ {
NetworkClientSocket *cs; NetworkClientSocket *cs;
@ -991,7 +994,7 @@ static bool NetworkReceive()
} }
} }
} }
return true; return _networking;
} }
/* This sends all buffered commands (if possible) */ /* This sends all buffered commands (if possible) */