Fix LWIP connect error report

This commit is contained in:
Lucian Copeland 2021-02-05 13:14:49 -05:00
parent 5bb722b927
commit 8214d67e5f

View File

@ -181,7 +181,7 @@ bool common_hal_socketpool_socket_connect(socketpool_socket_obj_t* self,
opts = opts | O_NONBLOCK;
lwip_fcntl(self->num, F_SETFL, opts);
if (result) {
if (result >= 0) {
self->connected = true;
return true;
} else {