fix
This commit is contained in:
parent
18bdce52df
commit
8e0a8d6a47
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user