aboutsummaryrefslogtreecommitdiff
path: root/cc3200
diff options
context:
space:
mode:
authordanicampora2015-10-22 16:21:33 +0200
committerdanicampora2015-10-22 16:35:04 +0200
commit0212dc65b7a81f14e2ba83f92849c9b03517b738 (patch)
tree611ea8a27040d799a1696d136d826dad8fa2a8fd /cc3200
parent9ebd4dabf20e577c8819c92edd20b30105dd957c (diff)
cc3200: Add created sockets to the registry.
Diffstat (limited to 'cc3200')
-rw-r--r--cc3200/mods/modusocket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc3200/mods/modusocket.c b/cc3200/mods/modusocket.c
index 42163b68b..6b69e91ee 100644
--- a/cc3200/mods/modusocket.c
+++ b/cc3200/mods/modusocket.c
@@ -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_
if (wlan_socket_socket(s, &_errno) != 0) {
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(-_errno)));
}
+ // add the socket to the list
+ modusocket_socket_add(s->sock_base.sd, true);
return s;
}