From 27e0190fb95440bd3c9d160bc0b284c6208393c9 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 10 Jan 2023 08:02:00 -0600 Subject: [PATCH] fix(net): handle -1 return value from recv --- src/net/connection/WowConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/connection/WowConnection.cpp b/src/net/connection/WowConnection.cpp index bc814ce..4de37d2 100644 --- a/src/net/connection/WowConnection.cpp +++ b/src/net/connection/WowConnection.cpp @@ -367,7 +367,7 @@ void WowConnection::DoStreamReads() { #endif } - if (bytesRead == 0) { + if (bytesRead <= 0) { break; }