summaryrefslogtreecommitdiff
path: root/upnp.cpp
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2012-11-09 09:14:08 +0100
committermethodus <methodus@web.de>2012-11-09 09:14:08 +0100
commitaa4a589d07999f0d7adacc1888e2d0e12700bffb (patch)
tree36412dd12a198a0ecade31b453e8cc6de14e03f7 /upnp.cpp
parentbfe748cec0bc44f4d6863a90cf9567302ab04158 (diff)
downloadvdr-plugin-upnp-aa4a589d07999f0d7adacc1888e2d0e12700bffb.tar.gz
vdr-plugin-upnp-aa4a589d07999f0d7adacc1888e2d0e12700bffb.tar.bz2
Shutdown is postponed if there are active requests open. Default is 5 minutes.
Diffstat (limited to 'upnp.cpp')
-rw-r--r--upnp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/upnp.cpp b/upnp.cpp
index 7792d42..b344f8c 100644
--- a/upnp.cpp
+++ b/upnp.cpp
@@ -83,7 +83,7 @@ void cPluginUpnp::Stop(void)
cString cPluginUpnp::Active(void)
{
- if(request_counter_t::OPEN_REQUESTS > 0){
+ if(mMediaServer->GetConfiguration().maxRequestTime > 0 && request_counter_t::OPEN_REQUESTS > 0){
return cString::sprintf(tr("There are %d requests active."), request_counter_t::OPEN_REQUESTS.Get());
}
return NULL;