From dc28a9161b0d5d6899271efdd933b97f2f2615ef Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 20 Jun 2017 06:57:35 +0200 Subject: [PATCH] Network/TcpClient: Fix Send hanging when used in non-blocking mode --- src/Nazara/Network/TcpClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Network/TcpClient.cpp b/src/Nazara/Network/TcpClient.cpp index 54144e8fd..9e2eb7e0c 100644 --- a/src/Nazara/Network/TcpClient.cpp +++ b/src/Nazara/Network/TcpClient.cpp @@ -326,7 +326,7 @@ namespace Nz }); } - while (totalByteSent < size) + while (totalByteSent < size || !IsBlockingEnabled()) { int sendSize = static_cast(std::min(size - totalByteSent, std::numeric_limits::max())); //< Handle very large send int sentSize;