From 23d986657a5a4e7d086932d528715aaf8875bad3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 6 Apr 2021 08:48:35 +0200 Subject: Spawned timers that don't use VPS now automatically adjust their start/stop times to changes in the respective event's times --- vdr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index 8b8cca39..d3a29872 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 5.1 2020/12/26 15:49:01 kls Exp $ + * $Id: vdr.c 5.2 2021/04/06 08:48:35 kls Exp $ */ #include @@ -1109,8 +1109,8 @@ int main(int argc, char *argv[]) Timers->SetSyncStateKey(StateKeySVDRPRemoteTimersPoll); // setting events shall not trigger a remote timer poll... if (Timers->SetEvents(Schedules)) TimersModified = true; - if (Timers->SpawnPatternTimers(Schedules)) { - StateKeySVDRPRemoteTimersPoll.Reset(); // ...but spawning new timers must! + if (Timers->SpawnPatternTimers(Schedules) | Timers->AdjustSpawnedTimers()) { // this really is '|', not '||'! + StateKeySVDRPRemoteTimersPoll.Reset(); // ...but spawning new timers or adjusting spawned timers must! TimersModified = true; } SchedulesStateKey.Remove(); -- cgit v1.2.3