Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3426

UPnP Plugin device tracking is error-prone

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • webconsole-upnp-plugin-1.0.0
    • Web Console
    • 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)

      { plugin.unregister(); this.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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            v_valchev Valentin Valchev
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment