Skip to content

Commit

Permalink
CBL-5645: Allow socket to close while OPENING (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeike committed Apr 24, 2024
1 parent 6a0ef11 commit a5ab529
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public final void coreWrites(@NonNull byte[] data) {
public final void coreRequestsClose(@NonNull CloseStatus status) {
Log.d(LOG_DOMAIN, "%s.coreRequestsClose: %s", this, status);

if (!assertState(SocketState.OPEN, SocketState.CLOSING)) { return; }
if (!assertState(SocketState.OPENING, SocketState.OPEN, SocketState.CLOSING)) { return; }

// We've told Core to leave the connection to us, so it might pass us the HTTP status
// If it does, we need to convert it to a WS status for the other side.
Expand Down

0 comments on commit a5ab529

Please sign in to comment.