src/timerd/timermanager.cpp fix double locking

This commit is contained in:
Jacek Jendrzej
2016-12-29 16:18:13 +01:00
parent 853c0d1b68
commit e88eeb61cd

View File

@@ -819,7 +819,9 @@ void CTimerManager::cancelShutdownOnWakeup()
{
pthread_mutex_lock(&tm_eventsMutex);
if (shutdown_eventID > -1) {
pthread_mutex_unlock(&tm_eventsMutex);
removeEvent(shutdown_eventID);
pthread_mutex_lock(&tm_eventsMutex);
shutdown_eventID = -1;
}
wakeup = 0;