mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
src/timerd/timermanager.cpp fix double locking
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user