diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 10:33:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 10:33:17 +0200 |
commit | a05b921e2966e4175a77e81fdfb81f26f93822c7 (patch) | |
tree | 272a3ac5ad55b9dc1d0ecd8bb78c681e441fa2be /vdr.c | |
parent | 425daa4ca5d2df5eb803fe52b1e94e6490edbd4e (diff) | |
download | vdr-a05b921e2966e4175a77e81fdfb81f26f93822c7.tar.gz vdr-a05b921e2966e4175a77e81fdfb81f26f93822c7.tar.bz2 |
No longer stopping Transfer Mode or replay immediately when the Power button is pressed
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.205 2005/05/26 10:04:58 kls Exp $ + * $Id: vdr.c 1.206 2005/05/26 10:30:18 kls Exp $ */ #include <getopt.h> @@ -744,7 +744,6 @@ int main(int argc, char *argv[]) // Power off: case kPower: isyslog("Power button pressed"); DELETENULL(Menu); - cControl::Shutdown(); Temp = NULL; if (!Shutdown) { Skins.Message(mtError, tr("Can't shutdown - option '-s' not given!")); @@ -906,6 +905,7 @@ int main(int argc, char *argv[]) if (WatchdogTimeout > 0) signal(SIGALRM, SIG_IGN); if (Interface->Confirm(tr("Press any key to cancel shutdown"), UserShutdown ? 5 : SHUTDOWNWAIT, true)) { + cControl::Shutdown(); int Channel = timer ? timer->Channel()->Number() : 0; const char *File = timer ? timer->File() : ""; Delta = Next - time(NULL); // compensates for Confirm() timeout |