Fixed Lobby Thread termination issue if an exception is thrown.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user