diff options
author | xhaggi <sascha.woo@gmail.com> | 2014-02-15 12:09:06 +0100 |
---|---|---|
committer | xhaggi <sascha.woo@gmail.com> | 2014-02-18 11:32:39 +0100 |
commit | 0ca89425f95fba3c916fa3f90e277d4bcaf52f83 (patch) | |
tree | 34604d5dc9cb39914a70af3637dff172202c7473 | |
parent | 18cebf09623f8beb540eb7b27dbe5aa4a7882184 (diff) |
[pvr] fix: wrong condition in PVRManager::IsIdle (Ticket #14630)
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.
-rw-r--r-- | xbmc/pvr/PVRManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/pvr/PVRManager.cpp b/xbmc/pvr/PVRManager.cpp index cc98c4359a..9a8f7c5e48 100644 --- a/xbmc/pvr/PVRManager.cpp +++ b/xbmc/pvr/PVRManager.cpp @@ -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; |