Skip to content

Commit

Permalink
fix: Fixes world save timer issue (#981)
Browse files Browse the repository at this point in the history
Fixes a major bug where a race condition could cause the timer wheel to have non-deterministic behavior and potentially never finish the save.
  • Loading branch information
kamronbatman authored Mar 29, 2022
1 parent b6d1556 commit a5a5460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/Server/World/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static void WriteFiles(object state)

m_DiskWriteHandle.Set();

Timer.StartTimer(FinishWorldSave);
Core.LoopContext.Post(FinishWorldSave);
}

private static void ProcessDecay()
Expand Down

0 comments on commit a5a5460

Please sign in to comment.