mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
fix(net): handle -1 return value from recv
This commit is contained in:
parent
13c55837d7
commit
27e0190fb9
@ -367,7 +367,7 @@ void WowConnection::DoStreamReads() {
|
||||
#endif
|
||||
}
|
||||
|
||||
if (bytesRead == 0) {
|
||||
if (bytesRead <= 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user