Don't throw exception if timer is already finished
This commit is contained in:
parent
3e70cc2a60
commit
1f7b8a6858
@ -44,7 +44,7 @@ class TimerQueue {
|
||||
}
|
||||
|
||||
fun execute() {
|
||||
check(!finished) { "Already finished" }
|
||||
if (finished) return
|
||||
runnable.run()
|
||||
finished = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user