From 823dc3d46fdf16cd123f67603f07e295602e3458 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 14 Nov 2024 22:55:27 +0300 Subject: [PATCH] engine: net_http: don't consider EALREADY on connect() an error --- engine/common/net_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/net_http.c b/engine/common/net_http.c index 8fc7f5d3..4b1b1710 100644 --- a/engine/common/net_http.c +++ b/engine/common/net_http.c @@ -300,7 +300,7 @@ static int HTTP_FileConnect( httpfile_t *file ) if( res < 0 ) { 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( )); HTTP_FreeFile( file, true );