summaryrefslogtreecommitdiff
path: root/searchtimer_thread.c
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2021-03-05 13:18:15 +0100
committerJohann Friedrichs <johann.friedrichs@web.de>2021-03-05 13:18:15 +0100
commit1ba2dd59989a6c755fb7b57e341099e728a13c2f (patch)
treeece795a753c720675914c48f09161aed5db7a125 /searchtimer_thread.c
parentfd6bd4839d2316bd74903d2fa2a3eeb58b4fec1d (diff)
downloadvdr-plugin-epgsearch-1ba2dd59989a6c755fb7b57e341099e728a13c2f.tar.gz
vdr-plugin-epgsearch-1ba2dd59989a6c755fb7b57e341099e728a13c2f.tar.bz2
Delay threads after pluginstart 10 secs (configurable)
Diffstat (limited to 'searchtimer_thread.c')
-rw-r--r--searchtimer_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c
index c6b6dc6..9441de2 100644
--- a/searchtimer_thread.c
+++ b/searchtimer_thread.c
@@ -206,6 +206,10 @@ void cSearchTimerThread::Action(void)
LogFile.Log(2, "SearchTimerThread: waiting for VDR to become ready...");
while (Running() && m_Active && !cPluginEpgsearch::VDR_readyafterStartup)
Wait.Wait(1000);
+ if (EPGSearchConfig.delayThreads > 0)
+ LogFile.Log(2, "SearchTimerThread: startup delayed %d seconds", EPGSearchConfig.delayThreads);
+ cCondWait::SleepMs(EPGSearchConfig.delayThreads * 1000);
+
time_t nextUpdate = time(NULL);
while (m_Active && Running()) {