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