Merge pull request #1 from Rikarin/patch-1

Update timer.d
This commit is contained in:
Sönke Ludwig 2016-12-17 10:48:18 +01:00 committed by GitHub
commit a80c8bd18c

View file

@ -63,7 +63,10 @@ final class LoopTimeoutTimerDriver : EventDriverTimers {
foreach (tm; m_firedTimers) {
auto cb = tm.callback;
tm.callback = null;
if (!tm.pending) {
tm.callback = null;
}
if (cb) cb(tm.id);
}