diff options
author | Johann Friedrichs <johann.friedrichs@web.de> | 2021-03-05 13:18:15 +0100 |
---|---|---|
committer | Johann Friedrichs <johann.friedrichs@web.de> | 2021-03-05 13:18:15 +0100 |
commit | 1ba2dd59989a6c755fb7b57e341099e728a13c2f (patch) | |
tree | ece795a753c720675914c48f09161aed5db7a125 /conflictcheck_thread.c | |
parent | fd6bd4839d2316bd74903d2fa2a3eeb58b4fec1d (diff) | |
download | vdr-plugin-epgsearch-1ba2dd59989a6c755fb7b57e341099e728a13c2f.tar.gz vdr-plugin-epgsearch-1ba2dd59989a6c755fb7b57e341099e728a13c2f.tar.bz2 |
Delay threads after pluginstart 10 secs (configurable)
Diffstat (limited to 'conflictcheck_thread.c')
-rw-r--r-- | conflictcheck_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |