Commit 499a7d6a authored by Alexander Alashkin's avatar Alexander Alashkin Committed by Cesanta Bot

Fix mg_is_error

PUBLISHED_FROM=80481f8dbcb93d04eee51ecc6366949420a61f2f
parent f72c3fa9
......@@ -3036,7 +3036,7 @@ void mg_set_non_blocking_mode(sock_t sock) {
static int mg_is_error(int n) {
int err = mg_get_errno();
return n == 0 || (n < 0 && err != EINPROGRESS && err != EWOULDBLOCK
return (n < 0 && err != EINPROGRESS && err != EWOULDBLOCK
#ifndef WINCE
&& err != EAGAIN && err != EINTR
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment