Update timer.d
Don't remove callback when timer is periodic because after first hit cb cannot be called again?
This commit is contained in:
parent
7e9031439c
commit
bfe1c46a73
|
@ -63,7 +63,10 @@ final class LoopTimeoutTimerDriver : EventDriverTimers {
|
|||
|
||||
foreach (tm; m_firedTimers) {
|
||||
auto cb = tm.callback;
|
||||
if (!tm.pending) {
|
||||
tm.callback = null;
|
||||
}
|
||||
|
||||
if (cb) cb(tm.id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue