summaryrefslogtreecommitdiff
path: root/shared-module/network
diff options
context:
space:
mode:
authorNick Moore <nick@zoic.org>2019-05-07 18:20:08 +1000
committerNick Moore <nick@zoic.org>2019-05-07 18:20:08 +1000
commit24934a1e8abbe51809c47b94fa5657d21ac783fb (patch)
treeb4c3c9d8a0fabd6295b74e050a29fdc965bee752 /shared-module/network
parentd97c81b0c999c77b64319e6eca4bcb346c2f9f29 (diff)
Clean up list of NICs on network deinit adafruit/circuitpython#1800
Diffstat (limited to 'shared-module/network')
-rw-r--r--shared-module/network/__init__.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-module/network/__init__.c b/shared-module/network/__init__.c
index a674e8478..c5783758d 100644
--- a/shared-module/network/__init__.c
+++ b/shared-module/network/__init__.c
@@ -43,6 +43,7 @@ void network_module_init(void) {
}
void network_module_deinit(void) {
+ mp_obj_list_set_len(&MP_STATE_PORT(mod_network_nic_list), 0);
}
void network_module_background(void) {