[Modify] Polish it

This commit is contained in:
sta 2021-03-06 22:11:14 +09:00
parent dc54e94914
commit 48266527a5

View File

@ -309,7 +309,10 @@ namespace WebSocketSharp.Net
return;
}
if (_state == InputChunkState.DataEnded && offset < length) {
if (_state == InputChunkState.DataEnded) {
if (offset >= length)
return;
_state = seekCrLf (buffer, ref offset, length);
if (_state == InputChunkState.DataEnded)