From a5a54602912a0f68228a8546ef9d3d1e0691b69a Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Tue, 29 Mar 2022 15:08:23 -0700 Subject: [PATCH] fix: Fixes world save timer issue (#981) Fixes a major bug where a race condition could cause the timer wheel to have non-deterministic behavior and potentially never finish the save. --- Projects/Server/World/World.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Server/World/World.cs b/Projects/Server/World/World.cs index 1db4b3e30..119555733 100644 --- a/Projects/Server/World/World.cs +++ b/Projects/Server/World/World.cs @@ -431,7 +431,7 @@ namespace Server m_DiskWriteHandle.Set(); - Timer.StartTimer(FinishWorldSave); + Core.LoopContext.Post(FinishWorldSave); } private static void ProcessDecay()