diff --git a/src/gui/components/cc_timer.cpp b/src/gui/components/cc_timer.cpp index 01cd9da11..a2d30ec75 100644 --- a/src/gui/components/cc_timer.cpp +++ b/src/gui/components/cc_timer.cpp @@ -61,8 +61,8 @@ void* CComponentsTimer::initTimerThread(void *arg) while(timer) { timer->mutex.lock(); timer->OnTimer(); - timer->mutex.unlock(); mySleep(timer->tm_interval); + timer->mutex.unlock(); } return 0;