From 37ae9dbee4f63ae40fecd67bfce9cc2837aa9395 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 12 Oct 2011 22:56:28 +0200 Subject: [PATCH] b/f: don't wait in user timer destruction --- core/plug-in/session_timer/UserTimer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/plug-in/session_timer/UserTimer.cpp b/core/plug-in/session_timer/UserTimer.cpp index 8f28f333..b144176e 100644 --- a/core/plug-in/session_timer/UserTimer.cpp +++ b/core/plug-in/session_timer/UserTimer.cpp @@ -29,9 +29,8 @@ public: #ifdef SESSION_TIMER_THREAD void onUnload() { DBG("stopping userTimer thread\n"); + AmThreadWatcher::instance()->add(UserTimer::instance()); UserTimer::instance()->_running = false; - usleep(10 * SESSION_TIMER_GRANULARITY * 1000); - UserTimer::instance()->stop(); } #endif };