Fix possible null pointer access.

This commit is contained in:
Sönke Ludwig 2016-10-19 22:00:22 +02:00
parent bf519fd058
commit e824278870

View file

@ -64,7 +64,7 @@ final class LoopTimeoutTimerDriver : EventDriverTimers {
foreach (tm; m_firedTimers) { foreach (tm; m_firedTimers) {
auto cb = tm.callback; auto cb = tm.callback;
tm.callback = null; tm.callback = null;
cb(tm.id); if (cb) cb(tm.id);
} }
bool any_fired = m_firedTimers.length > 0; bool any_fired = m_firedTimers.length > 0;