summaryrefslogtreecommitdiff
path: root/markad.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-26 22:34:41 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-26 22:34:41 +0100
commitb445c3bdbb6b222468052be12ee36422a99a8323 (patch)
tree77b1ecede26a2d7995b2e744b0eae60724a05096 /markad.cpp
parent80599de74daed049ba6d25cbf2644a8725fc4060 (diff)
downloadvdr-plugin-markad-b445c3bdbb6b222468052be12ee36422a99a8323.tar.gz
vdr-plugin-markad-b445c3bdbb6b222468052be12ee36422a99a8323.tar.bz2
Added plugin active check to prevent shutdown while markad is still working
Diffstat (limited to 'markad.cpp')
-rw-r--r--markad.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/markad.cpp b/markad.cpp
index 4f68b56..4bf9a9c 100644
--- a/markad.cpp
+++ b/markad.cpp
@@ -123,6 +123,8 @@ void cPluginMarkAd::MainThreadHook(void)
cString cPluginMarkAd::Active(void)
{
// Return a message string if shutdown should be postponed
+ if (statusMonitor->MarkAdRunning())
+ return tr("markad still running");
return NULL;
}
@@ -170,4 +172,4 @@ cString cPluginMarkAd::SVDRPCommand(const char *UNUSED(Command), const char *UNU
}
-VDRPLUGINCREATOR(cPluginMarkAd) // Don't touch this! \ No newline at end of file
+VDRPLUGINCREATOR(cPluginMarkAd) // Don't touch this!