mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-13 01:35:05 +03:00
fix(net): handle -1 return value from recv
This commit is contained in:
1 file changed
+1
-1
@@ -367,7 +367,7 @@ void WowConnection::DoStreamReads() {
|
||||
#endif
|
||||
}
|
||||
|
||||
if (bytesRead == 0) {
|
||||
if (bytesRead <= 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user