From 753718c7ad0af2d3732246db799cb98c5647b860 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Fri, 28 Jun 2024 00:50:52 +0200 Subject: [PATCH] HOW DID THIS EVER WORK --- Aquaria/Network.cpp | 3 ++- ExternalLibs/minihttp.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Aquaria/Network.cpp b/Aquaria/Network.cpp index 39c1b0c..afda749 100644 --- a/Aquaria/Network.cpp +++ b/Aquaria/Network.cpp @@ -82,8 +82,9 @@ protected: data->fail = true; } } + const unsigned httpstatus = GetStatusCode(); data->_th_finished = true; - data->_th_aborted = (GetStatusCode() != minihttp::HTTP_OK); + data->_th_aborted = (httpstatus != minihttp::HTTP_OK); notifyRequests.push(RequestDataHolder(data)); } diff --git a/ExternalLibs/minihttp.cpp b/ExternalLibs/minihttp.cpp index 19b7b0d..37e4905 100644 --- a/ExternalLibs/minihttp.cpp +++ b/ExternalLibs/minihttp.cpp @@ -764,6 +764,9 @@ bool TcpSocket::update(void) switch(err) { case EWOULDBLOCK: +#ifdef WSAEWOULDBLOCK + case WSAEWOULDBLOCK: +#endif #if defined(EAGAIN) && (EWOULDBLOCK != EAGAIN) case EAGAIN: // linux man pages say this can also happen instead of EWOULDBLOCK #endif