Fix announce thread exception
This commit is contained in:
@ -38,7 +38,7 @@ namespace RageCoop.Server
|
||||
server.Stop();
|
||||
mainLogger.Info("Server stopped.");
|
||||
mainLogger.Dispose();
|
||||
Thread.Sleep(3000);
|
||||
Thread.Sleep(1000);
|
||||
Environment.Exit(0);
|
||||
}
|
||||
else
|
||||
|
@ -246,8 +246,11 @@ namespace RageCoop.Server
|
||||
_stopping = true;
|
||||
Logger?.Flush();
|
||||
_listenerThread.Join();
|
||||
_announceThread.Join();
|
||||
_latencyThread.Join();
|
||||
if (_announceThread.IsAlive)
|
||||
{
|
||||
_announceThread.Join();
|
||||
}
|
||||
_worker.Dispose();
|
||||
}
|
||||
private void Listen()
|
||||
|
Reference in New Issue
Block a user