Ensure we delete the global evtimer only if it is initialized.

This commit is contained in:
Jan Vidar Krey 2009-07-26 02:05:01 +02:00
parent 817250c528
commit 48f3cae22b
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ int uman_shutdown(struct hub_info* hub)
return -1;
#ifdef USERMANAGER_TIMER
event_del(&hub->ev_timer);
if (evtimer_pending(&hub->ev_timer, 0)
event_del(&hub->ev_timer);
#endif
if (hub->users->list)