Fix possible null pointer access.
This commit is contained in:
parent
bf519fd058
commit
e824278870
|
@ -64,7 +64,7 @@ final class LoopTimeoutTimerDriver : EventDriverTimers {
|
|||
foreach (tm; m_firedTimers) {
|
||||
auto cb = tm.callback;
|
||||
tm.callback = null;
|
||||
cb(tm.id);
|
||||
if (cb) cb(tm.id);
|
||||
}
|
||||
|
||||
bool any_fired = m_firedTimers.length > 0;
|
||||
|
|
Loading…
Reference in a new issue