mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Merge branch 'master' into dev
This commit is contained in:
@@ -283,7 +283,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
// run this second because current may be modified by it
|
||||
await watchdog.ChangeSettings(current, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (!oldSoftRestart && model.SoftRestart == true)
|
||||
if (!oldSoftRestart && model.SoftRestart == true && watchdog.Status == WatchdogStatus.Online)
|
||||
await watchdog.Restart(true, cancellationToken).ConfigureAwait(false);
|
||||
else if (!oldSoftShutdown && model.SoftShutdown == true)
|
||||
await watchdog.Terminate(true, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user