fix(multimodal): release local responding worker correctly
This commit is contained in:
@@ -265,6 +265,15 @@ static BaseType_t create_local_responding_event_task(TaskHandle_t *out_handle)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void delete_local_responding_event_task(TaskHandle_t task)
|
||||||
|
{
|
||||||
|
#if CONTROL_PLANE_LOCAL_RESPONDING_TASK_WITH_CAPS
|
||||||
|
vTaskDeleteWithCaps(task);
|
||||||
|
#else
|
||||||
|
vTaskDelete(task);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static void log_downstream_binary_frame(size_t len, bool drop_audio, bool has_callback)
|
static void log_downstream_binary_frame(size_t len, bool drop_audio, bool has_callback)
|
||||||
{
|
{
|
||||||
uint32_t packets = ++s_downstream_binary_packet_total;
|
uint32_t packets = ++s_downstream_binary_packet_total;
|
||||||
@@ -580,7 +589,7 @@ static void local_responding_event_worker(void *arg)
|
|||||||
s_local_responding_event_task = NULL;
|
s_local_responding_event_task = NULL;
|
||||||
unlock_state();
|
unlock_state();
|
||||||
}
|
}
|
||||||
vTaskDelete(NULL);
|
delete_local_responding_event_task(NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user