mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/timerd/timermanager.cpp fix double locking
Origin commit data
------------------
Branch: ni/coolstream
Commit: e88eeb61cd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-29 (Thu, 29 Dec 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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