From 58d9e3dc37b9f7ad998ef5422bdea4cae5b5e840 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Sat, 14 Mar 2020 20:07:38 +0000 Subject: [PATCH] save: wrong thread for this api --- src/bin/editor/edi_editor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index 25a1166..3521a82 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -211,6 +211,7 @@ _async_save_thread_run_cb(void *data, Ecore_Thread *thread EINA_UNUSED) editor = async_save->editor; code = async_save->code; + ecore_thread_main_loop_begin(); elm_code_file_save(code->file); editor->save_time = ecore_file_mod_time(elm_code_file_path_get(code->file)); @@ -221,6 +222,7 @@ _async_save_thread_run_cb(void *data, Ecore_Thread *thread EINA_UNUSED) ecore_timer_del(editor->save_timer); editor->save_timer = NULL; } + ecore_thread_main_loop_end(); } static void