Skip to content

Commit

Permalink
#440: NeonDESKTOP wizard window need to be vertically centered
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflill committed Apr 3, 2024
1 parent 014bf91 commit 68d188c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/Neon.Common/Tasks/AsyncTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ public void Start(TimeSpan interval = default, bool delayFirstTick = false, Func
// We're restarting the timer so signal any existing timer task to
// exit and set the new interval (if any).

if (IsRunning)
if (IsRunning && timerTask.Status == TaskStatus.Running)
{
Covenant.Assert(cts != null);

cts.Cancel();
timerTask.WaitWithoutAggregate();

cts = null;
cts = null;
timerTask = null;
}

Expand Down

0 comments on commit 68d188c

Please sign in to comment.