Ensure we delete the global evtimer only if it is initialized.
This commit is contained in:
parent
817250c528
commit
48f3cae22b
|
@ -125,6 +125,7 @@ int uman_shutdown(struct hub_info* hub)
|
|||
return -1;
|
||||
|
||||
#ifdef USERMANAGER_TIMER
|
||||
if (evtimer_pending(&hub->ev_timer, 0)
|
||||
event_del(&hub->ev_timer);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue