Fix could not restart device discovery after stopping

This commit is contained in:
Leon Böttger committed 2025-07-27 20:54:28 +02:00
1 parent a311aa01b0
commit 5f40e1d759
1 file changed
+4
@@ -163,11 +163,15 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
public func stopDeviceDiscovery() {
if startedDeviceDiscovery {
log("Stopping device discovery")
for browser in browsers {
browser.cancel()
}
browsers.removeAll()
startedDeviceDiscovery = false
}
}