From 48f3cae22b4ff2b95abc6ce4db5c30eb725cfe25 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Sun, 26 Jul 2009 02:05:01 +0200 Subject: [PATCH] Ensure we delete the global evtimer only if it is initialized. --- src/core/usermanager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/usermanager.c b/src/core/usermanager.c index 7f96903..56f8ff2 100644 --- a/src/core/usermanager.c +++ b/src/core/usermanager.c @@ -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)