You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07: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