mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31: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,
|
logger.trace("Removing an UPNP service subscription '{}' for particpant '{}'", serviceID,
|
||||||
participant.getUDN());
|
participant.getUDN());
|
||||||
|
|
||||||
UpnpSubscriptionCallback callback = subscriptionCallbacks.get(subService);
|
UpnpSubscriptionCallback callback = subscriptionCallbacks.remove(subService);
|
||||||
if (callback != null) {
|
if (callback != null) {
|
||||||
callback.end();
|
callback.end();
|
||||||
}
|
}
|
||||||
subscriptionCallbacks.remove(subService);
|
|
||||||
} else {
|
} else {
|
||||||
logger.trace("Could not find service '{}' for device '{}'", serviceID,
|
logger.trace("Could not find service '{}' for device '{}'", serviceID,
|
||||||
device.getIdentity().getUdn());
|
device.getIdentity().getUdn());
|
||||||
|
Loading…
Reference in New Issue
Block a user