From 3dc7d04ab4d15519ebff0fa1da14debe7c1922c9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 Nov 2017 17:19:28 +0100 Subject: [PATCH] Properly handle connection reset on win32. --- common/TracySocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index 9e057cea..f6dc63f7 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -170,7 +170,7 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() ) #ifdef _WIN32 { auto err = WSAGetLastError(); - if( err == WSAECONNABORTED ) return false; + if( err == WSAECONNABORTED || err == WSAECONNRESET ) return false; } #endif break;