Fix outgoing transfer flakiness

This commit is contained in:
Leon Böttger committed 2026-04-03 19:19:22 +02:00
1 parent 9a488a2ae2
commit feaf557ca2
1 file changed
+1 -4
+1 -4
View File
@@ -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)