From 1ba2dd59989a6c755fb7b57e341099e728a13c2f Mon Sep 17 00:00:00 2001 From: Johann Friedrichs Date: Fri, 5 Mar 2021 13:18:15 +0100 Subject: Delay threads after pluginstart 10 secs (configurable) --- conflictcheck_thread.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'conflictcheck_thread.c') diff --git a/conflictcheck_thread.c b/conflictcheck_thread.c index e9bce14..da1aaf0 100644 --- a/conflictcheck_thread.c +++ b/conflictcheck_thread.c @@ -92,6 +92,9 @@ void cConflictCheckThread::Action(void) LogFile.Log(2, "ConflictCheckThread: waiting for VDR to become ready..."); while (m_Active && !cPluginEpgsearch::VDR_readyafterStartup) Wait.Wait(1000); + if (EPGSearchConfig.delayThreads > 0) + LogFile.Log(2, "ConflictCheckThread: startup delayed %d seconds", EPGSearchConfig.delayThreads); + cCondWait::SleepMs(EPGSearchConfig.delayThreads * 1000); } time_t nextUpdate = time(NULL); -- cgit v1.2.3