summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2017-08-01 02:41:10 +0200
committerFrank Neumann <fnu@yavdr.org>2017-08-01 02:41:10 +0200
commitf25c3907a334a171af6ebfbe9604c94beb6e69d2 (patch)
tree2a4ae22b54b086ae0a07b30ffb0d1bdb18f941ba
parente5fe89b7fc7990bfec6a304736cd9c72f4c9552b (diff)
downloadvdr-plugin-epgsearch-f25c3907a334a171af6ebfbe9604c94beb6e69d2.tar.gz
vdr-plugin-epgsearch-f25c3907a334a171af6ebfbe9604c94beb6e69d2.tar.bz2
fix recordingsdone deadlock.
-rw-r--r--recdone_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/recdone_thread.c b/recdone_thread.c
index 0f77ab2..7029849 100644
--- a/recdone_thread.c
+++ b/recdone_thread.c
@@ -81,6 +81,7 @@ void cRecdoneThread::Action(void)
time_t now = time(NULL);
// remove timers that finished recording from TimersRecording
// incomplete recordings are kept for a while, perhaps they will be resumed
+ LOCK_TIMERS_READ;
cMutexLock TimersRecordingLock(&TimersRecording);
cRecDoneTimerObj *tiR = TimersRecording.First();
while(tiR)
@@ -88,7 +89,6 @@ void cRecdoneThread::Action(void)
// check if timer still exists
bool found = false;
- LOCK_TIMERS_READ;
for (const cTimer *ti = Timers->First(); ti; ti = Timers->Next(ti))
if (ti == tiR->timer)
{