Calling RequestStop will no longer have an effect if the server isn't running (#21)

This commit is contained in:
Jordan Brown
2017-06-06 15:58:46 -03:00
committed by Leo
parent cc5b49d40d
commit daaf372a43
+2
View File
@@ -77,6 +77,8 @@ namespace TGServerService
{
lock (watchdogLock)
{
if (currentStatus != TGDreamDaemonStatus.Online)
return;
AwaitingShutdown = true;
}
SendCommand(SCGracefulShutdown);