Skip to content

Commit 24934a1

Browse files
committed
Clean up list of NICs on network deinit #1800
1 parent d97c81b commit 24934a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shared-module/network/__init__.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void network_module_init(void) {
4343
}
4444

4545
void network_module_deinit(void) {
46+
mp_obj_list_set_len(&MP_STATE_PORT(mod_network_nic_list), 0);
4647
}
4748

4849
void network_module_background(void) {

0 commit comments

Comments
 (0)