Fix LWIP connect error report
This commit is contained in:
parent
5bb722b927
commit
8214d67e5f
@ -181,7 +181,7 @@ bool common_hal_socketpool_socket_connect(socketpool_socket_obj_t* self,
|
|||||||
opts = opts | O_NONBLOCK;
|
opts = opts | O_NONBLOCK;
|
||||||
lwip_fcntl(self->num, F_SETFL, opts);
|
lwip_fcntl(self->num, F_SETFL, opts);
|
||||||
|
|
||||||
if (result) {
|
if (result >= 0) {
|
||||||
self->connected = true;
|
self->connected = true;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user