diff options
author | Christian Wieninger <winni@debian.(none)> | 2007-11-28 19:37:46 +0100 |
---|---|---|
committer | Christian Wieninger <winni@debian.(none)> | 2007-11-28 19:37:46 +0100 |
commit | ff8576b944fb68511c86491668eff76b10f6a7c5 (patch) | |
tree | 786f70bd9425d45c142f8d600ff3dad6da6d68cf | |
parent | 52115f6134058027a37601015b5f11fdf53c48b0 (diff) | |
download | vdr-plugin-epgsearch-ff8576b944fb68511c86491668eff76b10f6a7c5.tar.gz vdr-plugin-epgsearch-ff8576b944fb68511c86491668eff76b10f6a7c5.tar.bz2 |
- faster exit when thread is canceled
-rw-r--r-- | searchtimer_thread.c | 2 | ||||
-rw-r--r-- | switchtimer_thread.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchtimer_thread.c b/searchtimer_thread.c index f4e3070..ae832c0 100644 --- a/searchtimer_thread.c +++ b/searchtimer_thread.c @@ -221,7 +221,7 @@ void cSearchTimerThread::Action(void) cSearchExt *searchExt = localSearchExts->First(); // reset announcelist announceList.Clear(); - while (searchExt) + while (searchExt && m_Active) { if (!searchExt->IsActiveAt(now)) { diff --git a/switchtimer_thread.c b/switchtimer_thread.c index 179af83..f8e10d8 100644 --- a/switchtimer_thread.c +++ b/switchtimer_thread.c @@ -81,7 +81,7 @@ void cSwitchTimerThread::Action(void) cMutexLock SwitchTimersLock(&SwitchTimers); LogFile.Log(3,"switch timer check started"); cSwitchTimer* switchTimer = SwitchTimers.First(); - while (switchTimer) + while (switchTimer && m_Active) { const cEvent* event = switchTimer->event; if (event && event->StartTime() - now < switchTimer->switchMinsBefore*60 + MSG_DELAY + 1) |