Fix mg_is_error

PUBLISHED_FROM=80481f8dbcb93d04eee51ecc6366949420a61f2f
This commit is contained in:
Alexander Alashkin 2016-11-09 13:36:33 +00:00 committed by Cesanta Bot
parent f72c3fa9a7
commit 499a7d6a37

View File

@ -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