forked from xiaozhi/xiaozhi-esp32
delete background task before upgrade
This commit is contained in:
@@ -23,6 +23,9 @@ BackgroundTask::~BackgroundTask() {
|
||||
if (background_task_handle_ != nullptr) {
|
||||
vTaskDelete(background_task_handle_);
|
||||
}
|
||||
if (task_stack_ != nullptr) {
|
||||
heap_caps_free(task_stack_);
|
||||
}
|
||||
}
|
||||
|
||||
void BackgroundTask::Schedule(std::function<void()> callback) {
|
||||
|
||||
Reference in New Issue
Block a user