Handle closed socket on win32.

This commit is contained in:
Bartosz Taudul 2017-09-15 21:43:57 +02:00
parent a2fa319a42
commit f29669152e

View File

@ -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;