[Modify] Polish it
This commit is contained in:
parent
d41e20750f
commit
a688bbf115
@ -148,7 +148,7 @@ namespace WebSocketSharp.Net
|
|||||||
if (count > _count)
|
if (count > _count)
|
||||||
count = _count;
|
count = _count;
|
||||||
|
|
||||||
if (_bodyLeft > 0 && count > _bodyLeft)
|
if (_bodyLeft > 0 && _bodyLeft < count)
|
||||||
count = (int) _bodyLeft;
|
count = (int) _bodyLeft;
|
||||||
|
|
||||||
Buffer.BlockCopy (_buffer, _offset, buffer, offset, count);
|
Buffer.BlockCopy (_buffer, _offset, buffer, offset, count);
|
||||||
|
Loading…
Reference in New Issue
Block a user