aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Op den Kamp <lars@opdenkamp.eu>2012-09-29 01:04:55 +0200
committerLars Op den Kamp <lars@opdenkamp.eu>2012-09-29 01:05:46 +0200
commit3b800089643ed7c2c022cf7a8e818bb92d145556 (patch)
treea571dd2738dfd26595e3a4f8eec60a0897d5f7ff
parentf5ee842337a03449d98c3da155c08f09875b0a65 (diff)
[epg] fixed - ensure the epg thread is stopped before trying to start a new one
-rw-r--r--xbmc/epg/EpgContainer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/epg/EpgContainer.cpp b/xbmc/epg/EpgContainer.cpp
index 15477e76dd..ffac4488d4 100644
--- a/xbmc/epg/EpgContainer.cpp
+++ b/xbmc/epg/EpgContainer.cpp
@@ -121,6 +121,8 @@ void CEpgContainer::Clear(bool bClearDb /* = false */)
void CEpgContainer::Start(void)
{
+ Stop();
+
CSingleLock lock(m_critSection);
if (!m_database.IsOpen())