2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 19:30:08 +01:00

engine: net_http: don't consider EALREADY on connect() an error

This commit is contained in:
Alibek Omarov 2024-11-14 22:55:27 +03:00
parent 779cb2f721
commit 823dc3d46f

View File

@ -300,7 +300,7 @@ static int HTTP_FileConnect( httpfile_t *file )
if( res < 0 ) if( res < 0 )
{ {
int err = WSAGetLastError(); int err = WSAGetLastError();
if( err != WSAEWOULDBLOCK && err != WSAEINPROGRESS ) if( err != WSAEWOULDBLOCK && err != WSAEINPROGRESS && err != WSAEALREADY )
{ {
Con_Printf( S_ERROR "cannot connect to server: %s\n", NET_ErrorString( )); Con_Printf( S_ERROR "cannot connect to server: %s\n", NET_ErrorString( ));
HTTP_FreeFile( file, true ); HTTP_FreeFile( file, true );