From f29669152e455b95715f867b2b0c287e72b99027 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 15 Sep 2017 21:43:57 +0200 Subject: [PATCH] Handle closed socket on win32. --- common/TracySocket.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index c091fa97..81738d7f 100755 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -143,6 +143,12 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() ) case 0: return false; case -1: +#ifdef _WIN32 + { + auto err = WSAGetLastError(); + if( err == WSAECONNABORTED ) return false; + } +#endif break; default: len -= sz;