cpu: delete window straight away

This commit is contained in:
Alastair Poole 2020-06-28 19:18:54 +01:00
parent 35323ea227
commit e96d62b44f
1 changed files with 2 additions and 4 deletions

View File

@ -190,10 +190,8 @@ _win_del_cb(void *data, Evas_Object *obj,
Progress *progress;
Ui *ui = data;
evas_object_hide(obj);
ecore_thread_cancel(ui->thread_cpu);
ecore_thread_wait(ui->thread_cpu, 1.0);
evas_object_del(obj);
EINA_LIST_FREE(ui->cpu_list, progress)
{
@ -202,7 +200,7 @@ _win_del_cb(void *data, Evas_Object *obj,
free(progress);
}
evas_object_del(obj);
ecore_thread_wait(ui->thread_cpu, 1.0);
ui->cpu_visible = EINA_FALSE;
}