[Modify] Polish it

This commit is contained in:
sta 2019-06-22 21:33:21 +09:00
parent 976f44a2d1
commit 7bc9039350

View File

@ -766,7 +766,7 @@ namespace WebSocketSharp
ar => { ar => {
try { try {
var nread = stream.EndRead (ar); var nread = stream.EndRead (ar);
if (nread == 0) { if (nread <= 0) {
if (retry < _retry) { if (retry < _retry) {
retry++; retry++;
stream.BeginRead (buff, offset, length, callback, null); stream.BeginRead (buff, offset, length, callback, null);