This commit is contained in:
MihailRis 2024-11-26 17:24:52 +03:00
parent 18bdce52df
commit 8e0a8d6a47

View File

@ -312,8 +312,8 @@ public:
} }
#ifdef _WIN32 #ifdef _WIN32
u_long mode = 1; u_long mode = 1;
auto result = ioctlsocket(descriptor, FIONBIO, &mode); auto err = ioctlsocket(descriptor, FIONBIO, &mode);
if (result != NO_ERROR) { if (err != NO_ERROR) {
throw std::runtime_error( throw std::runtime_error(
"Could not set to non-blocking mode [errno=" + std::to_string(err) + "Could not set to non-blocking mode [errno=" + std::to_string(err) +
"]: " + std::string(strerror(err)) "]: " + std::string(strerror(err))