mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +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() {
|
||||
if startedDeviceDiscovery {
|
||||
|
||||
log("Stopping device discovery")
|
||||
|
||||
for browser in browsers {
|
||||
browser.cancel()
|
||||
}
|
||||
|
||||
browsers.removeAll()
|
||||
startedDeviceDiscovery = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user