From 4e71b61a8b73e1e6b2740fe900fd881556130bde Mon Sep 17 00:00:00 2001 From: xarkes Date: Wed, 26 Sep 2018 15:48:57 +0200 Subject: [PATCH] Do not delete running tasks (#721) --- src/utils/R2Task.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/R2Task.cpp b/src/utils/R2Task.cpp index cd7ee3ed..33f42492 100644 --- a/src/utils/R2Task.cpp +++ b/src/utils/R2Task.cpp @@ -12,7 +12,9 @@ R2Task::R2Task(const QString &cmd) R2Task::~R2Task() { - r_core_task_del(Core()->core(), task->id); + // Don't delete current task as it might be still running + // Just delete any task that is done. + r_core_task_del_all_done(Core()->core()); } void R2Task::taskFinishedCallback(void *user, char *)