[Modify] Polish it
This commit is contained in:
parent
764eb2c133
commit
dc54e94914
@ -299,7 +299,10 @@ namespace WebSocketSharp.Net
|
|||||||
_gotIt = false;
|
_gotIt = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_state == InputChunkState.Data && offset < length) {
|
if (_state == InputChunkState.Data) {
|
||||||
|
if (offset >= length)
|
||||||
|
return;
|
||||||
|
|
||||||
_state = writeData (buffer, ref offset, length);
|
_state = writeData (buffer, ref offset, length);
|
||||||
|
|
||||||
if (_state == InputChunkState.Data)
|
if (_state == InputChunkState.Data)
|
||||||
|
Loading…
Reference in New Issue
Block a user