summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;