Skip to content

Commit 0212dc6

Browse files
author
danicampora
committed
cc3200: Add created sockets to the registry.
1 parent 9ebd4da commit 0212dc6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cc3200/mods/modusocket.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ STATIC mp_obj_t socket_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_
157157
if (wlan_socket_socket(s, &_errno) != 0) {
158158
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(-_errno)));
159159
}
160+
// add the socket to the list
161+
modusocket_socket_add(s->sock_base.sd, true);
160162
return s;
161163
}
162164

0 commit comments

Comments
 (0)