fix: Fixes Timer.Pause not running continuation (#1893)
This commit is contained in:
parent
4d47b3849f
commit
8f39af9579
2 changed files with 20 additions and 6 deletions
|
|
@ -151,6 +151,16 @@ public partial class Timer
|
|||
return;
|
||||
}
|
||||
|
||||
InternalStop();
|
||||
|
||||
Detach();
|
||||
OnDetach();
|
||||
|
||||
Version++;
|
||||
}
|
||||
|
||||
private void InternalStop()
|
||||
{
|
||||
Running = false;
|
||||
|
||||
// We are the head on the timer ring
|
||||
|
|
@ -165,15 +175,11 @@ public partial class Timer
|
|||
_executingRings[_ring] = _nextTimer;
|
||||
}
|
||||
|
||||
Detach();
|
||||
OnDetach();
|
||||
|
||||
var prof = GetProfile();
|
||||
if (prof != null)
|
||||
{
|
||||
prof.Stopped++;
|
||||
}
|
||||
Version++;
|
||||
}
|
||||
|
||||
protected virtual void OnTick()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue