[Modify] Polish it

This commit is contained in:
sta 2021-03-06 22:07:47 +09:00
parent 764eb2c133
commit dc54e94914

View File

@ -299,7 +299,10 @@ namespace WebSocketSharp.Net
_gotIt = false;
}
if (_state == InputChunkState.Data && offset < length) {
if (_state == InputChunkState.Data) {
if (offset >= length)
return;
_state = writeData (buffer, ref offset, length);
if (_state == InputChunkState.Data)