Make sure that pending but unreferenced timers still invoke their callback. Fixes #104.

This commit is contained in:
Sönke Ludwig 2018-11-23 15:52:18 +01:00
parent 9e526194e7
commit b5442b5efd

View file

@ -1103,7 +1103,7 @@ struct TimerCallbackHandler {
cb(); cb();
} }
if (!eventDriver.timers.isUnique(timer)) if (!eventDriver.timers.isUnique(timer) || eventDriver.timers.isPending(timer))
eventDriver.timers.wait(timer, &handle); eventDriver.timers.wait(timer, &handle);
} }
} }