|
@@ -197,6 +197,12 @@ namespace Base
|
|
|
this.OnError(this, error);
|
|
this.OnError(this, error);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (n == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.OnError(this, error);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
this.recvBuffer.LastIndex += n;
|
|
this.recvBuffer.LastIndex += n;
|
|
|
if (this.recvBuffer.LastIndex == TBuffer.ChunkSize)
|
|
if (this.recvBuffer.LastIndex == TBuffer.ChunkSize)
|