Skip to content

Commit 38d88e0

Browse files
committed
[Modify] Replace it
1 parent 1512e15 commit 38d88e0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

websocket-sharp/WebSocket.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,13 +2520,7 @@ public void CloseAsync (ushort code, string reason)
25202520
return;
25212521
}
25222522

2523-
if (code == (ushort) CloseStatusCode.NoStatus) {
2524-
closeAsync (new CloseEventArgs (), true, true, false);
2525-
return;
2526-
}
2527-
2528-
var send = !code.IsReserved ();
2529-
closeAsync (new CloseEventArgs (code, reason), send, send, false);
2523+
closeAsync (code, reason);
25302524
}
25312525

25322526
/// <summary>

0 commit comments

Comments
 (0)