Fixed Lobby Thread termination issue if an exception is thrown.

This commit is contained in:
lotodore
2007-10-23 20:01:56 +00:00
parent 07a0b8503d
commit ae030a3669
+1 -1
View File
@@ -79,7 +79,7 @@ ServerAcceptThread::Main()
Listen(); Listen();
GetLobbyThread().Run(); GetLobbyThread().Run();
while (!ShouldTerminate()) while (!ShouldTerminate() && !GetLobbyThread().Join(0))
{ {
// The main server thread is simple. It only accepts connections. // The main server thread is simple. It only accepts connections.
AcceptLoop(); AcceptLoop();