From aa4a589d07999f0d7adacc1888e2d0e12700bffb Mon Sep 17 00:00:00 2001 From: methodus Date: Fri, 9 Nov 2012 09:14:08 +0100 Subject: Shutdown is postponed if there are active requests open. Default is 5 minutes. --- upnp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3