Module: sems
Branch: 1.4
Commit: 37ae9dbee4f63ae40fecd67bfce9cc2837aa9395
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=37ae9dbee4f63ae40fecd67bfce9cc2837aa9395

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

Reply via email to