mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
Improve UPNP callback removal (#3310)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
ecbb854e03
commit
dd584779db
@ -269,11 +269,10 @@ public class UpnpIOServiceImpl implements UpnpIOService, RegistryListener {
|
||||
logger.trace("Removing an UPNP service subscription '{}' for particpant '{}'", serviceID,
|
||||
participant.getUDN());
|
||||
|
||||
UpnpSubscriptionCallback callback = subscriptionCallbacks.get(subService);
|
||||
UpnpSubscriptionCallback callback = subscriptionCallbacks.remove(subService);
|
||||
if (callback != null) {
|
||||
callback.end();
|
||||
}
|
||||
subscriptionCallbacks.remove(subService);
|
||||
} else {
|
||||
logger.trace("Could not find service '{}' for device '{}'", serviceID,
|
||||
device.getIdentity().getUdn());
|
||||
|
Loading…
Reference in New Issue
Block a user