mirror of
https://github.com/micropython/micropython.git
synced 2026-03-15 05:10:15 +01:00
esp8266: Initialize socket->connlist to NULL
This was causing crashes in .onconnect()
This commit is contained in:
committed by
Damien George
parent
57ebe1b27d
commit
2d56df67cd
@@ -70,6 +70,7 @@ STATIC mp_obj_t esp_socket_make_new_base() {
|
||||
s->cb_recv = mp_const_none;
|
||||
s->cb_disconnect = mp_const_none;
|
||||
s->fromserver = false;
|
||||
s->connlist = NULL;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user