Make sure that pending but unreferenced timers still invoke their callback. Fixes #104.
This commit is contained in:
parent
9e526194e7
commit
b5442b5efd
|
@ -1103,7 +1103,7 @@ struct TimerCallbackHandler {
|
|||
cb();
|
||||
}
|
||||
|
||||
if (!eventDriver.timers.isUnique(timer))
|
||||
if (!eventDriver.timers.isUnique(timer) || eventDriver.timers.isPending(timer))
|
||||
eventDriver.timers.wait(timer, &handle);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue