summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index e551a6f7..2296180f 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -408,7 +408,7 @@ g_tcp_last_error_would_block(int sck)
#if defined(_WIN32)
return WSAGetLastError() == WSAEWOULDBLOCK;
#else
- return errno == EWOULDBLOCK;
+ return (errno == EWOULDBLOCK) || (errno == EINPROGRESS);
#endif
}