We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68472c4 commit 70c9f19Copy full SHA for 70c9f19
FirebaseAI/Sources/Types/Internal/Live/AsyncWebSocket.swift
@@ -49,7 +49,7 @@ final class AsyncWebSocket: NSObject, @unchecked Sendable, URLSessionWebSocketDe
49
50
/// Closes the websocket, if it's not already closed.
51
func disconnect() {
52
- if closeError.value() != nil { return }
+ guard closeError.value() == nil else { return }
53
54
close(code: .goingAway, reason: nil)
55
}
0 commit comments