Module: sems Branch: master Commit: 985ba907f14ee7f2d8fc76d7f7f7b1642c0ff627 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=985ba907f14ee7f2d8fc76d7f7f7b1642c0ff627
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Oct 12 22:56:28 2011 +0200 b/f: don't wait in user timer destruction --- core/plug-in/session_timer/UserTimer.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/core/plug-in/session_timer/UserTimer.cpp b/core/plug-in/session_timer/UserTimer.cpp index 8f28f33..b144176 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 }; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
