diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-08-05 10:55:52 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-08-05 10:55:52 +0200 |
commit | 394865b3d9c087f982edf21263bb776d1bed1a7c (patch) | |
tree | f64d80f84c56a2d8212b0fb94cf5edaf69ce2ac3 /vdr.c | |
parent | 8bfe599830bad4528b4fa60dddaa3c0b8cb9c80d (diff) | |
download | vdr-394865b3d9c087f982edf21263bb776d1bed1a7c.tar.gz vdr-394865b3d9c087f982edf21263bb776d1bed1a7c.tar.bz2 |
Avoiding shutdown message "Recording in ... minutes, shut down anyway?" with a negative number of minutes
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.277 2006/08/05 10:40:57 kls Exp $ + * $Id: vdr.c 1.278 2006/08/05 10:46:38 kls Exp $ */ #include <getopt.h> @@ -1015,16 +1015,18 @@ int main(int argc, char *argv[]) } if (cPluginManager::Active(tr("shut down anyway?"))) break; - cTimer *timer = Timers.GetNextActiveTimer(); - time_t Next = timer ? timer->StartTime() : 0; - time_t Delta = timer ? Next - time(NULL) : 0; - if (Next && Delta <= Setup.MinEventTimeout * 60) { - char *buf; - asprintf(&buf, tr("Recording in %ld minutes, shut down anyway?"), Delta / 60); - bool confirm = Interface->Confirm(buf); - free(buf); - if (!confirm) - break; + if (!cRecordControls::Active()) { + cTimer *timer = Timers.GetNextActiveTimer(); + time_t Next = timer ? timer->StartTime() : 0; + time_t Delta = timer ? Next - time(NULL) : 0; + if (Next && Delta <= Setup.MinEventTimeout * 60) { + char *buf; + asprintf(&buf, tr("Recording in %ld minutes, shut down anyway?"), Delta / 60); + bool confirm = Interface->Confirm(buf); + free(buf); + if (!confirm) + break; + } } ForceShutdown = true; break; |