mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-07 23:17:19 +08:00
Ensure non-repeating Timer callback fires (#610)
This commit is contained in:
committed by
GitHub
parent
6e98b07884
commit
24433c18a0
@ -29,6 +29,7 @@ class Timer {
|
||||
if (_current >= limit) {
|
||||
if (!repeat) {
|
||||
_running = false;
|
||||
callback?.call();
|
||||
return;
|
||||
}
|
||||
// This is used to cover the rare case of _current being more than
|
||||
|
||||
Reference in New Issue
Block a user