summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-19 14:46:23 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-19 14:46:23 +0200
commitcd6041f9ae78cac1eb910fb03460f723810c225f (patch)
treecb2f961321a73bc9a43ae60cd6ea84305e8845de /vdr.c
parent1e4c80799fd17b1b0841d7108ee752b685f72dba (diff)
downloadvdr-cd6041f9ae78cac1eb910fb03460f723810c225f.tar.gz
vdr-cd6041f9ae78cac1eb910fb03460f723810c225f.tar.bz2
Housekeeping now waits for a while after a replay has ended
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index e6347878..f858add2 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.300 2007/09/26 14:36:48 kls Exp $
+ * $Id: vdr.c 1.301 2007/10/19 14:44:19 kls Exp $
*/
#include <getopt.h>
@@ -523,6 +523,7 @@ int main(int argc, char *argv[])
int PreviousChannel[2] = { 1, 1 };
int PreviousChannelIndex = 0;
time_t LastChannelChanged = time(NULL);
+ time_t LastInteract = 0;
int MaxLatencyTime = 0;
bool InhibitEpgScan = false;
bool IsInfoMenu = false;
@@ -1069,6 +1070,7 @@ int main(int argc, char *argv[])
}
Interact = Menu ? Menu : cControl::Control(); // might have been closed in the mean time
if (Interact) {
+ LastInteract = Now;
eOSState state = Interact->ProcessKey(key);
if (state == osUnknown && Interact != cControl::Control()) {
if (ISMODELESSKEY(key) && cControl::Control()) {
@@ -1195,7 +1197,7 @@ int main(int argc, char *argv[])
ShutdownHandler.countdown.Cancel();
}
- if (!Interact && !cRecordControls::Active() && !cCutter::Active() && !Interface->HasSVDRPConnection() && (Now - cRemote::LastActivity()) > ACTIVITYTIMEOUT) {
+ if ((Now - LastInteract) > ACTIVITYTIMEOUT && !cRecordControls::Active() && !cCutter::Active() && !Interface->HasSVDRPConnection() && (Now - cRemote::LastActivity()) > ACTIVITYTIMEOUT) {
// Handle housekeeping tasks
// Shutdown: