Skip to content

Commit 70c9f19

Browse files
daymxnandrewheard
andauthored
Update FirebaseAI/Sources/Types/Internal/Live/AsyncWebSocket.swift
Co-authored-by: Andrew Heard <[email protected]>
1 parent 68472c4 commit 70c9f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAI/Sources/Types/Internal/Live/AsyncWebSocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class AsyncWebSocket: NSObject, @unchecked Sendable, URLSessionWebSocketDe
4949

5050
/// Closes the websocket, if it's not already closed.
5151
func disconnect() {
52-
if closeError.value() != nil { return }
52+
guard closeError.value() == nil else { return }
5353

5454
close(code: .goingAway, reason: nil)
5555
}

0 commit comments

Comments
 (0)