commit | 8b1c1c756dc3d309cc7cde043736703fdf8a666f | [log] [tgz] |
---|---|---|
author | Valentin Valchev <vvalchev@apache.org> | Wed Apr 03 13:54:09 2013 +0000 |
committer | Valentin Valchev <vvalchev@apache.org> | Wed Apr 03 13:54:09 2013 +0000 |
tree | b7d0019a2e8794069cbe81c5f5b66c0079208be8 | |
parent | c127deae4aa989e0be677ed554909b67c6f885e8 [diff] |
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;