fix(net): handle -1 return value from recv

This commit is contained in:
fallenoak 2023-01-10 08:02:00 -06:00
parent 13c55837d7
commit 27e0190fb9
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -367,7 +367,7 @@ void WowConnection::DoStreamReads() {
#endif
}
if (bytesRead == 0) {
if (bytesRead <= 0) {
break;
}