Skip to content

Commit f171660

Browse files
authored
Merge pull request #4139 from hierophect/socket-accept-conn
Socket: Connect accepted sockets
2 parents be500fd + 582bc59 commit f171660

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ socketpool_socket_obj_t* common_hal_socketpool_socket_accept(socketpool_socket_o
9999
sock->base.type = &socketpool_socket_type;
100100
sock->num = newsoc;
101101
sock->pool = self->pool;
102+
sock->connected = true;
102103

103104
if (!register_open_socket(sock)) {
104105
mp_raise_OSError(MP_EBADF);

0 commit comments

Comments
 (0)