Fixed FELIX-4013 Incorrect usage of ServiceTracker.size() in UPnP Plugin
https://issues.apache.org/jira/browse/FELIX-4013

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1464014 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/upnp/src/main/java/org/apache/felix/webconsole/plugins/upnp/internal/Activator.java b/webconsole-plugins/upnp/src/main/java/org/apache/felix/webconsole/plugins/upnp/internal/Activator.java
index f4ceae8..65b5d4d 100644
--- a/webconsole-plugins/upnp/src/main/java/org/apache/felix/webconsole/plugins/upnp/internal/Activator.java
+++ b/webconsole-plugins/upnp/src/main/java/org/apache/felix/webconsole/plugins/upnp/internal/Activator.java
@@ -106,7 +106,7 @@
                 controller.removedService(reference, service);

         }

 

-        if (tracker.size() <= 1 && plugin != null)

+        if (tracker.size() == 0 && plugin != null)

         {

             plugin.unregister();

             this.plugin = null;