mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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);
|
pthread_mutex_lock(&tm_eventsMutex);
|
||||||
if (shutdown_eventID > -1) {
|
if (shutdown_eventID > -1) {
|
||||||
|
pthread_mutex_unlock(&tm_eventsMutex);
|
||||||
removeEvent(shutdown_eventID);
|
removeEvent(shutdown_eventID);
|
||||||
|
pthread_mutex_lock(&tm_eventsMutex);
|
||||||
shutdown_eventID = -1;
|
shutdown_eventID = -1;
|
||||||
}
|
}
|
||||||
wakeup = 0;
|
wakeup = 0;
|
||||||
|
Reference in New Issue
Block a user