summaryrefslogtreecommitdiff
path: root/upnp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'upnp.cpp')
-rw-r--r--upnp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/upnp.cpp b/upnp.cpp
index bf585d7..7792d42 100644
--- a/upnp.cpp
+++ b/upnp.cpp
@@ -15,7 +15,7 @@
using namespace std;
using namespace upnp;
-int request_counter_t::OPEN_REQUESTS = 0;
+tools::atomic::AtomicInteger request_counter_t::OPEN_REQUESTS;
cPluginUpnp::cPluginUpnp(void)
{
@@ -84,7 +84,7 @@ void cPluginUpnp::Stop(void)
cString cPluginUpnp::Active(void)
{
if(request_counter_t::OPEN_REQUESTS > 0){
- return cString::sprintf(tr("There are %d requests active."), request_counter_t::OPEN_REQUESTS);
+ return cString::sprintf(tr("There are %d requests active."), request_counter_t::OPEN_REQUESTS.Get());
}
return NULL;
}