mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Properly handle connection reset on win32.
This commit is contained in:
parent
a91d12a9e1
commit
3dc7d04ab4
@ -170,7 +170,7 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() )
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
{
|
{
|
||||||
auto err = WSAGetLastError();
|
auto err = WSAGetLastError();
|
||||||
if( err == WSAECONNABORTED ) return false;
|
if( err == WSAECONNABORTED || err == WSAECONNRESET ) return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user