mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Fix outgoing transfer flakiness
This commit is contained in:
1 parent
9a488a2ae2
commit
feaf557ca2
1 file changed
+1
-4
@@ -112,9 +112,7 @@ class ShareViewController: NSViewController, OutboundAppDelegate {
|
||||
|
||||
timeoutDispatchWorkItem?.cancel()
|
||||
|
||||
if chosenDevice == nil {
|
||||
NearbyConnectionManager.shared.stopDeviceDiscovery()
|
||||
}
|
||||
NearbyConnectionManager.shared.stopDeviceDiscovery()
|
||||
NearbyConnectionManager.shared.removeOutboundAppDelegate(self)
|
||||
}
|
||||
|
||||
@@ -255,7 +253,6 @@ class ShareViewController: NSViewController, OutboundAppDelegate {
|
||||
progressProgressBar?.startAnimation(nil)
|
||||
progressState?.stringValue = "Preparing".localized()
|
||||
chosenDevice = device
|
||||
NearbyConnectionManager.shared.stopDeviceDiscovery()
|
||||
|
||||
runAfter(seconds: 0.3) {
|
||||
NearbyConnectionManager.shared.startOutgoingTransfer(deviceID: device.id!, delegate: self, urls: self.urls, textToSend: self.textToSend)
|
||||
|
||||
Reference in new issue
Block a user