]> git.vomp.tv Git - vompclient.git/commitdiff
Fix a timers thread locking bug
authorChris Tallon <chris@vomp.tv>
Wed, 10 Sep 2008 16:33:57 +0000 (16:33 +0000)
committerChris Tallon <chris@vomp.tv>
Wed, 10 Sep 2008 16:33:57 +0000 (16:33 +0000)
timers.cc

index 3c43e083bac97294d7b1f29f5ca4e5d5ad02cbc3..b9bb844833c81616d64847e2b748aa8ecb3b925a 100755 (executable)
--- a/timers.cc
+++ b/timers.cc
@@ -49,7 +49,6 @@ int Timers::init()
   initted = true;
   logger = Log::getInstance();
 
-  threadLock(); // lock here, the thread loop will unlock and wait
   if (!threadStart())
   {
     shutdown();
@@ -319,7 +318,7 @@ void Timers::threadMethod()
   TimerEvent* nextTimer = NULL;
   resetThreadFlag = true;
 
-  // locked here
+  threadLock();
 
   while(1)
   {