fix(core): Fixes a timer bug where Stop wasn't called internally (#664)
This commit is contained in:
parent
26592f202e
commit
06a577332d
7 changed files with 71 additions and 50 deletions
|
|
@ -23,7 +23,7 @@ namespace Server.Tests
|
|||
timerTicks.ExecutedCount++;
|
||||
}
|
||||
|
||||
Timer.Initialize(timerTicks.Ticks);
|
||||
Timer.Init(timerTicks.Ticks);
|
||||
|
||||
var timer = Timer.DelayCall(TimeSpan.FromMilliseconds(ticks), action);
|
||||
timer.Start();
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Tests
|
|||
Assert.Equal(timerTicks.ExpectedTicks, timerTicks.Ticks);
|
||||
}
|
||||
|
||||
Timer.Initialize(timerTicks.Ticks);
|
||||
Timer.Init(timerTicks.Ticks);
|
||||
|
||||
var timer = Timer.DelayCall(TimeSpan.FromMilliseconds(delay), TimeSpan.FromMilliseconds(interval), count, action);
|
||||
timer.Start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue