Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
webconsole-upnp-plugin-1.0.0
-
None
Description
Sometimes, when one device appears, and another is removed, the plugin is unregistered. The reason is that the addingService() and removedService() in the activator are not synchronized.
In addition, in removedService() the code fragment is absolutely incorrect:
if (tracker.getTrackingCount() == 0 && plugin != null)
The reason is that 'tracking count' is always incremented - no matter if a service is registered, modified or unregistered. It is NOT the count of tracked services.