Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ internal class AndroidConnectSocket(
const val HANDSHAKE_TIMEOUT_MS = 5_000
const val HEARTBEAT_INTERVAL_MS = 3_000L
const val HEARTBEAT_TIMEOUT_MS = 2_000

/** Generous inter-frame timeout so a stalled host is visible without false positives. */
val GENERATION_READ_TIMEOUT_MS = RADefaults.Connect.GENERATION_READ_TIMEOUT_MS
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ public final class ConnectSession: ObservableObject {
"Timed out connecting to \(hostDisplayName)."
)
}
let value = try await group.next()!
guard let value = try await group.next() else {
throw ConnectTransportError.network(
"Connecting to \(hostDisplayName) finished without a response."
)
}
group.cancelAll()
return value
}
Expand Down
Loading