Skip to content

Commit

Permalink
Merge pull request #6092 from Jalle19/speedup-pvr-load
Browse files Browse the repository at this point in the history
[pvr] don't persist channel groups (includes members) unless the group is fully loaded
  • Loading branch information
Lars Op den Kamp committed Jan 20, 2015
2 parents 59fb902 + 36d276f commit e740097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/pvr/channels/PVRChannelGroup.cpp
Expand Up @@ -900,7 +900,8 @@ bool CPVRChannelGroup::Persist(void)
bool bReturn(true);
CSingleLock lock(m_critSection);

if (!HasChanges())
/* don't persist until the group is fully loaded and has changes */
if (!HasChanges() || !m_bLoaded)
return bReturn;

if (CPVRDatabase *database = GetPVRDatabase())
Expand Down

0 comments on commit e740097

Please sign in to comment.