mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Handle closed socket on win32.
This commit is contained in:
parent
a2fa319a42
commit
f29669152e
@ -143,6 +143,12 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, bool(*exitCb)() )
|
|||||||
case 0:
|
case 0:
|
||||||
return false;
|
return false;
|
||||||
case -1:
|
case -1:
|
||||||
|
#ifdef _WIN32
|
||||||
|
{
|
||||||
|
auto err = WSAGetLastError();
|
||||||
|
if( err == WSAECONNABORTED ) return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
len -= sz;
|
len -= sz;
|
||||||
|
Loading…
Reference in New Issue
Block a user