diff options
author | Christian Völlinger <zerov83@gmail.com> | 2014-01-21 18:43:47 +0100 |
---|---|---|
committer | Christian Völlinger <zerov83@gmail.com> | 2014-01-21 18:43:47 +0100 |
commit | 71b2a17ad25c8ad957ed2ee55c824382c122fb60 (patch) | |
tree | e67be3a937957f9c1dd266e4370de84c3cbaad1d | |
parent | 98afa7fb78fbe80faf25d6c5f424b2aa29b5c197 (diff) | |
download | vdr-plugin-boblight-71b2a17ad25c8ad957ed2ee55c824382c122fb60.tar.gz vdr-plugin-boblight-71b2a17ad25c8ad957ed2ee55c824382c122fb60.tar.bz2 |
Checks for inactive User
-rw-r--r-- | ambithread.c | 2 | ||||
-rw-r--r-- | ambithread.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ambithread.c b/ambithread.c index 619d55e..91569f5 100644 --- a/ambithread.c +++ b/ambithread.c @@ -88,7 +88,7 @@ void cAmbiThread::Action() { MsTime start = msNow(); - if(softhddeviceNotDetached() == fail) + if(ShutdownHandler.IsUserInactive() || softhddeviceNotDetached() == fail) { bob.close(); waitCondition.TimedWait(mutex, 1000); diff --git a/ambithread.h b/ambithread.h index 9c3ed4c..abc1c58 100644 --- a/ambithread.h +++ b/ambithread.h @@ -20,6 +20,7 @@ #include <queue> #include <vdr/thread.h> +#include <vdr/shutdown.h> #include "common.h" #include "config.h" |