From 7ca682338a5e31eef172d1591f9e8625329a28b3 Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Sat, 4 Jan 2025 13:07:10 +0000 Subject: [PATCH] Fix sequencing bug Signed-off-by: Andrew Fiddian-Green --- .../org/openhab/core/io/transport/upnp/UpnpDeviceFinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.io.transport.upnp/src/main/java/org/openhab/core/io/transport/upnp/UpnpDeviceFinder.java b/bundles/org.openhab.core.io.transport.upnp/src/main/java/org/openhab/core/io/transport/upnp/UpnpDeviceFinder.java index fa545d25a..fc9a9fa7a 100644 --- a/bundles/org.openhab.core.io.transport.upnp/src/main/java/org/openhab/core/io/transport/upnp/UpnpDeviceFinder.java +++ b/bundles/org.openhab.core.io.transport.upnp/src/main/java/org/openhab/core/io/transport/upnp/UpnpDeviceFinder.java @@ -140,8 +140,8 @@ public class UpnpDeviceFinder implements RegistryListener { * Remove the given UPnP device UDN from the subscriptions list and cancel any pending search. */ public void removeUDN(UDN udn) { - subscriptions.remove(udn); cancelSearch(udn); + subscriptions.remove(udn); logger.debug("Removed subscription for {}", udn); }