Skip to content

Commit 8fc6dc0

Browse files
committed
[Modify] Polish it
1 parent 878153d commit 8fc6dc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

websocket-sharp/WebSocket.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,9 @@ internal bool Ping (byte[] frameAsBytes, TimeSpan timeout)
26012601
if (_readyState != WebSocketState.Open)
26022602
return false;
26032603

2604-
if (!sendBytes (frameAsBytes))
2604+
var sent = sendBytes (frameAsBytes);
2605+
2606+
if (!sent)
26052607
return false;
26062608
}
26072609

0 commit comments

Comments
 (0)