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

View File

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