1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed shutdown after user inactivity in case a plugin is keeping the OSD open (cont'd)

This commit is contained in:
Klaus Schmidinger 2019-03-12 10:01:16 +01:00
parent 61c00ccae5
commit 235c652648

4
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.tvdr.de * The project's page is at http://www.tvdr.de
* *
* $Id: vdr.c 4.27 2018/07/16 08:52:40 kls Exp $ * $Id: vdr.c 4.28 2019/03/12 10:01:16 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -1514,7 +1514,7 @@ int main(int argc, char *argv[])
ShutdownHandler.countdown.Cancel(); ShutdownHandler.countdown.Cancel();
} }
if (!cRecordControls::Active() && !RecordingsHandler.Active() && (Now - cRemote::LastActivity()) > ACTIVITYTIMEOUT) { if (!cControl::Control() && !cRecordControls::Active() && !RecordingsHandler.Active() && (Now - cRemote::LastActivity()) > ACTIVITYTIMEOUT) {
// Shutdown: // Shutdown:
// Check whether VDR will be ready for shutdown in SHUTDOWNWAIT seconds: // Check whether VDR will be ready for shutdown in SHUTDOWNWAIT seconds:
time_t Soon = Now + SHUTDOWNWAIT; time_t Soon = Now + SHUTDOWNWAIT;