mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Moved the cPluginManager::Active() call further down
This commit is contained in:
parent
19f39258f0
commit
3f7090887b
10
vdr.c
10
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.cadsoft.de/vdr
|
* The project's page is at http://www.cadsoft.de/vdr
|
||||||
*
|
*
|
||||||
* $Id: vdr.c 1.281 2006/12/02 10:33:35 kls Exp $
|
* $Id: vdr.c 1.282 2006/12/02 16:22:12 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
@ -1159,10 +1159,6 @@ int main(int argc, char *argv[])
|
|||||||
if (Now - LastActivity > ACTIVITYTIMEOUT) {
|
if (Now - LastActivity > ACTIVITYTIMEOUT) {
|
||||||
// Shutdown:
|
// Shutdown:
|
||||||
if (Shutdown && (Setup.MinUserInactivity || LastActivity == 1) && Now - LastActivity > Setup.MinUserInactivity * 60) {
|
if (Shutdown && (Setup.MinUserInactivity || LastActivity == 1) && Now - LastActivity > Setup.MinUserInactivity * 60) {
|
||||||
if (!ForceShutdown && cPluginManager::Active()) {
|
|
||||||
LastActivity = Now - Setup.MinUserInactivity * 60 + SHUTDOWNRETRY; // try again later
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
cTimer *timer = Timers.GetNextActiveTimer();
|
cTimer *timer = Timers.GetNextActiveTimer();
|
||||||
time_t Next = timer ? timer->StartTime() : 0;
|
time_t Next = timer ? timer->StartTime() : 0;
|
||||||
time_t Delta = timer ? Next - Now : 0;
|
time_t Delta = timer ? Next - Now : 0;
|
||||||
@ -1182,6 +1178,10 @@ int main(int argc, char *argv[])
|
|||||||
timer = NULL;
|
timer = NULL;
|
||||||
dsyslog("reboot at %s", *TimeToString(Next));
|
dsyslog("reboot at %s", *TimeToString(Next));
|
||||||
}
|
}
|
||||||
|
if (!ForceShutdown && cPluginManager::Active()) {
|
||||||
|
LastActivity = Now - Setup.MinUserInactivity * 60 + SHUTDOWNRETRY; // try again later
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!Next || Delta > Setup.MinEventTimeout * 60 || ForceShutdown) {
|
if (!Next || Delta > Setup.MinEventTimeout * 60 || ForceShutdown) {
|
||||||
ForceShutdown = false;
|
ForceShutdown = false;
|
||||||
if (timer)
|
if (timer)
|
||||||
|
Loading…
Reference in New Issue
Block a user