Fixed a bug in pUpdateRead(). Now it can actually detect (again) if the socket was closed on the other side.

This commit is contained in:
Josh Allen
2004-08-12 19:32:39 +00:00
parent 28a25d19d0
commit 5f2c703514
+4 -1
View File
@@ -368,7 +368,10 @@ int EzSockets::pUpdateRead() {
if(bytes>0)
inBuffer.append(tempData,bytes);
else if(bytes<0)
else if(bytes<=0)
/* To get her I think CanRead was called at least once.
So if length equals 0 and can read says there is data than
the socket was closed.*/
state = skERROR;
return bytes;
}