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:
Daniël van de Giessen 2023-08-15 11:34:23 +02:00 committed by Damien George
parent 6bd1404225
commit c0d4c604e6

View File

@ -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) {