Handle Timer.stop() gracefully for null timers.
This commit is contained in:
parent
b7e996cd8c
commit
c490a354b7
|
@ -1114,7 +1114,7 @@ struct Timer {
|
|||
|
||||
/** Resets the timer and avoids any firing.
|
||||
*/
|
||||
void stop() nothrow { m_driver.stop(m_id); }
|
||||
void stop() nothrow { if (m_driver) m_driver.stop(m_id); }
|
||||
|
||||
/** Waits until the timer fires.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue