Fixed Lobby Thread termination issue if an exception is thrown.
This commit is contained in:
1 parent
07a0b8503d
commit
ae030a3669
1 file changed
+1
-1
@@ -79,7 +79,7 @@ ServerAcceptThread::Main()
|
||||
Listen();
|
||||
GetLobbyThread().Run();
|
||||
|
||||
while (!ShouldTerminate())
|
||||
while (!ShouldTerminate() && !GetLobbyThread().Join(0))
|
||||
{
|
||||
// The main server thread is simple. It only accepts connections.
|
||||
AcceptLoop();
|
||||
|
||||
Reference in new issue
Block a user