From b445c3bdbb6b222468052be12ee36422a99a8323 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Fri, 26 Mar 2010 22:34:41 +0100 Subject: Added plugin active check to prevent shutdown while markad is still working --- markad.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'markad.cpp') 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! -- cgit v1.2.3