Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions clients/ios/Views/Settings/QRPairingSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ struct QRPairingSheet: View {
handlePairingResponse(result, payload: payload, effectiveBaseURL: lanUrl)
return
}
// LAN failed, fall through to cloud gateway
// LAN failed — but if we were cancelled while waiting, stop here
// instead of falling through to the gateway path.
guard !Task.isCancelled else { return }
// Fall through to cloud gateway
}

// Cloud gateway
Expand All @@ -311,7 +314,7 @@ struct QRPairingSheet: View {
)
if let result = result {
handlePairingResponse(result, payload: payload, effectiveBaseURL: payload.gatewayURL)
} else {
} else if !Task.isCancelled {
await MainActor.run {
errorMessage = "Could not reach your Mac. Make sure the Vellum daemon is running."
phase = .error
Expand Down
Loading