mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Fix could not restart device discovery after stopping
This commit is contained in:
1 parent
a311aa01b0
commit
5f40e1d759
1 file changed
+4
@@ -163,11 +163,15 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
|
|||||||
|
|
||||||
public func stopDeviceDiscovery() {
|
public func stopDeviceDiscovery() {
|
||||||
if startedDeviceDiscovery {
|
if startedDeviceDiscovery {
|
||||||
|
|
||||||
|
log("Stopping device discovery")
|
||||||
|
|
||||||
for browser in browsers {
|
for browser in browsers {
|
||||||
browser.cancel()
|
browser.cancel()
|
||||||
}
|
}
|
||||||
|
|
||||||
browsers.removeAll()
|
browsers.removeAll()
|
||||||
|
startedDeviceDiscovery = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user