mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix
This commit is contained in:
parent
18bdce52df
commit
8e0a8d6a47
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue