From f25c3907a334a171af6ebfbe9604c94beb6e69d2 Mon Sep 17 00:00:00 2001 From: Johann Friedrichs Date: Tue, 1 Aug 2017 02:41:10 +0200 Subject: fix recordingsdone deadlock. --- recdone_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3