summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-03-10 13:02:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-03-10 13:02:05 +0100
commit93ad92da140c982365335f2452e9eb46aa2dc846 (patch)
tree97bddd421dbc0b71a79ef0cfa23be2e36181f5e2 /vdr.c
parentdf2f3335eb5cbd396cbbeca5ff3bf3c73cafcfb4 (diff)
downloadvdr-93ad92da140c982365335f2452e9eb46aa2dc846.tar.gz
vdr-93ad92da140c982365335f2452e9eb46aa2dc846.tar.bz2
Fixed handling user activity for shutdown
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 001a7cb1..4dc8ec75 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.285 2007/02/25 11:27:36 kls Exp $
+ * $Id: vdr.c 1.286 2007/03/10 13:00:22 kls Exp $
*/
#include <getopt.h>
@@ -1162,7 +1162,7 @@ int main(int argc, char *argv[])
ShutdownHandler.countdown.Cancel();
}
- if (!Interact && !cRecordControls::Active() && !cCutter::Active() && !Interface->HasSVDRPConnection() && cRemote::LastActivity() > ACTIVITYTIMEOUT) {
+ if (!Interact && !cRecordControls::Active() && !cCutter::Active() && !Interface->HasSVDRPConnection() && (time(NULL) - cRemote::LastActivity()) > ACTIVITYTIMEOUT) {
// Handle housekeeping tasks
// Shutdown: