Do not delete running tasks (#721)

This commit is contained in:
xarkes 2018-09-26 15:48:57 +02:00 committed by GitHub
parent ce54e4ea8f
commit 4e71b61a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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