From 7aa9551389c943742193b53b903cd8e774a0e1f6 Mon Sep 17 00:00:00 2001 From: Prozon <104065803+Prozon@users.noreply.github.com> Date: Sun, 14 Jun 2026 22:44:52 -0700 Subject: [PATCH] Fix for Restart Bug Fixes the server failing to start after being stopped when DisconnectOnRestart is enabled. The player-eject now only runs if the server is actually running. --- Torch.Server/TorchServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.");