Skip to content

Commit 8214d67

Browse files
committed
Fix LWIP connect error report
1 parent 5bb722b commit 8214d67

File tree

1 file changed

+1
-1
lines changed
  • ports/esp32s2/common-hal/socketpool

1 file changed

+1
-1
lines changed

ports/esp32s2/common-hal/socketpool/Socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bool common_hal_socketpool_socket_connect(socketpool_socket_obj_t* self,
181181
opts = opts | O_NONBLOCK;
182182
lwip_fcntl(self->num, F_SETFL, opts);
183183

184-
if (result) {
184+
if (result >= 0) {
185185
self->connected = true;
186186
return true;
187187
} else {

0 commit comments

Comments
 (0)