esp32/network_ppp: Block after deleting task.
When calling ppp.active(False) we could get a crash due to immediately returning after asking FreeRTOS to delete the current task. This commit adds a simple blocking loop, the same as used in all other places where we call vTaskDelete(NULL). Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
This commit is contained in:
parent
6bd1404225
commit
c0d4c604e6
|
@ -114,6 +114,8 @@ static void pppos_client_task(void *self_in) {
|
|||
|
||||
self->client_task_handle = NULL;
|
||||
vTaskDelete(NULL);
|
||||
for (;;) {
|
||||
}
|
||||
}
|
||||
|
||||
STATIC mp_obj_t ppp_active(size_t n_args, const mp_obj_t *args) {
|
||||
|
|
Loading…
Reference in New Issue