Skip to content

Commit

Permalink
Make sure target updater runs before everything else to prevent stale…
Browse files Browse the repository at this point in the history
… memory
  • Loading branch information
NostraThomas99 committed Dec 4, 2024
1 parent e3fd696 commit 7fb308d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ private static void UpdateWork()

try
{
StateUpdater.UpdateState();

if (Service.Config.AutoReloadRotations)
{
RotationUpdater.LocalRotationWatcher();
Expand All @@ -151,6 +149,7 @@ private static void UpdateWork()
if (DataCenter.IsActivated())
{
TargetUpdater.UpdateTargets();
StateUpdater.UpdateState();
ActionSequencerUpdater.UpdateActionSequencerAction();
ActionUpdater.UpdateNextAction();
}
Expand Down

0 comments on commit 7fb308d

Please sign in to comment.