mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-17 04:51:03 +08:00
Fix mg_is_error
PUBLISHED_FROM=80481f8dbcb93d04eee51ecc6366949420a61f2f
This commit is contained in:
parent
f72c3fa9a7
commit
499a7d6a37
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user