Network/Socket: Fix Connect (timeout) on Windows/Linux

This commit is contained in:
Jérôme Leclercq
2018-08-30 13:03:50 +02:00
parent d0e33225b7
commit 56873b92b0
3 changed files with 3 additions and 1 deletions

View File

@@ -132,6 +132,7 @@ namespace Nz
switch (errorCode) //< Check for "normal errors" first
{
case WSAEALREADY:
case WSAEINVAL: //< In case of connect, WSAEINVAL may be returned instead of WSAEALREADY
case WSAEWOULDBLOCK:
return SocketState_Connecting;