[pvr] fix: wrong condition in PVRManager::IsIdle (Ticket #14630)
authorxhaggi <sascha.woo@gmail.com>
Sat, 15 Feb 2014 11:09:06 +0000 (12:09 +0100)
committerxhaggi <sascha.woo@gmail.com>
Tue, 18 Feb 2014 10:32:39 +0000 (11:32 +0100)
IsIdle() returns the wrong state (true) if delta between next timer and
now is equal to the backend idle time setting. In this condition XBMC
shuts down with a wrong wakeup time for the next timer.

xbmc/pvr/PVRManager.cpp

index cc98c43..9a8f7c5 100644 (file)
@@ -1323,10 +1323,8 @@ bool CPVRManager::IsIdle(void) const
     const CDateTime next = m_timers->GetNextEventTime();
     const CDateTimeSpan delta = next - now;
 
-    if (delta < idle)
-    {
+    if (delta <= idle)
       return false;
-    }
   }
 
   return true;