summaryrefslogtreecommitdiff
path: root/conflictcheck_thread.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2012-04-06 20:27:04 +0200
committerChristian Wieninger <cwieninger@gmx.de>2012-04-06 20:27:04 +0200
commit3bd2658c85f00269583259d5912c88f031b9599f (patch)
tree6f95f40fbaf30b383a16f566d84a0ade7b448cec /conflictcheck_thread.c
parent65f1e5030f076c530a5a6a37ead43cf7d9d86325 (diff)
downloadvdr-plugin-epgsearch-3bd2658c85f00269583259d5912c88f031b9599f.tar.gz
vdr-plugin-epgsearch-3bd2658c85f00269583259d5912c88f031b9599f.tar.bz2
bugtracker #929, bunch of warning fixes, thanks to Joe_D for providing this patch
Diffstat (limited to 'conflictcheck_thread.c')
-rw-r--r--conflictcheck_thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conflictcheck_thread.c b/conflictcheck_thread.c
index c7398db..d3a9c5f 100644
--- a/conflictcheck_thread.c
+++ b/conflictcheck_thread.c
@@ -96,7 +96,7 @@ void cConflictCheckThread::Action(void)
}
time_t nextUpdate = time(NULL);
- while (m_Active)
+ while (m_Active && Running())
{
time_t now = time(NULL);
if (now >= nextUpdate || m_forceUpdate)
@@ -149,10 +149,10 @@ void cConflictCheckThread::Action(void)
nextUpdate = long(m_lastUpdate/60)*60 + (Intervall * 60);
}
- if (m_Active)
+ if (m_Active && Running())
Wait.Wait(2000); // to avoid high system load if time%30==0 ?????????????????????
// no waiting in the while loop if m_runOnce is true
- while (m_Active && time(NULL)%30 != 0 && !m_runOnce) // sync heart beat to a multiple of 5secs
+ while (Running() && m_Active && time(NULL)%30 != 0 && !m_runOnce) // sync heart beat to a multiple of 5secs
Wait.Wait(1000);
};