diff --git a/Torch.Server/TorchServer.cs b/Torch.Server/TorchServer.cs index a7753e03..d3c3b339 100644 --- a/Torch.Server/TorchServer.cs +++ b/Torch.Server/TorchServer.cs @@ -226,7 +226,7 @@ public override void Stop() /// public override void Restart(bool save = true) { - if (Config.DisconnectOnRestart) + if (IsRunning && Config.DisconnectOnRestart) { ModCommunication.SendMessageToClients(new JoinServerMessage("0.0.0.0:25555")); Log.Info("Ejected all players from server for restart.");