esp8266: Initialize socket->connlist to NULL
This was causing crashes in .onconnect()
This commit is contained in:
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_recv = mp_const_none;
|
||||||
s->cb_disconnect = mp_const_none;
|
s->cb_disconnect = mp_const_none;
|
||||||
s->fromserver = false;
|
s->fromserver = false;
|
||||||
|
s->connlist = NULL;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue