mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-21 01:13:43 +08:00
Unbreak macos tests
PUBLISHED_FROM=a9521579223cfbb68e2b7bcd221335d25dacbb87
This commit is contained in:
parent
5cdf838325
commit
0cf82744ce
@ -2763,7 +2763,7 @@ void mg_if_connect_tcp(struct mg_connection *nc,
|
||||
mg_set_non_blocking_mode(nc->sock);
|
||||
#endif
|
||||
rc = connect(nc->sock, &sa->sa, sizeof(sa->sin));
|
||||
nc->err = rc == 0 ? 0 : (errno ? errno : 1);
|
||||
nc->err = mg_is_error(rc) ? errno : 0;
|
||||
DBG(("%p sock %d err %d", nc, nc->sock, nc->err));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user