diff options
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.244 2006/01/22 15:59:13 kls Exp $ + * $Id: vdr.c 1.246 2006/01/29 14:35:31 kls Exp $ */ #include <getopt.h> @@ -71,6 +71,7 @@ // in order to react on a possible new CAM menu as soon as possible #define DEVICEREADYTIMEOUT 30 // seconds to wait until all devices are ready #define MENUTIMEOUT 120 // seconds of user inactivity after which an OSD display is closed +#define SHUTDOWNRETRY 300 // seconds before trying again to shut down #define EXIT(v) { ExitCode = (v); goto Exit; } @@ -1087,7 +1088,7 @@ int main(int argc, char *argv[]) if (signal(SIGALRM, Watchdog) == SIG_IGN) signal(SIGALRM, SIG_IGN); } - LastActivity = time(NULL); // don't try again too soon + LastActivity = time(NULL) - Setup.MinUserInactivity * 60 + SHUTDOWNRETRY; // try again later UserShutdown = false; continue; // skip the rest of the housekeeping for now } @@ -1122,6 +1123,7 @@ Exit: } cDevice::Shutdown(); PluginManager.Shutdown(); + cSchedules::Cleanup(true); ReportEpgBugFixStats(); if (WatchdogTimeout > 0) dsyslog("max. latency time %d seconds", MaxLatencyTime); |