Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CEpgContainer::UpdateEPG - cleanup state before return if database no…

…t open
  • Loading branch information...
commit 451c423ff783ffeb7c161caababaf721d67f734b 1 parent e3c47ab
@mikrohard authored Jernej committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 xbmc/epg/EpgContainer.cpp
View
8 xbmc/epg/EpgContainer.cpp
@@ -482,6 +482,14 @@ bool CEpgContainer::UpdateEPG(bool bOnlyPending /* = false */)
if (!m_bIgnoreDbForClient && !m_database.IsOpen())
{
CLog::Log(LOGERROR, "EpgContainer - %s - could not open the database", __FUNCTION__);
+
+ CSingleLock lock(m_critSection);
+ m_bIsUpdating = false;
+ m_updateEvent.Set();
+
+ if (bShowProgress && !bOnlyPending)
+ CloseProgressDialog();
+
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.