From f1e98e6e9728d4dfa852aabdac79f3506db2f661 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 30 Nov 2018 15:47:38 -0800 Subject: [PATCH] ecore_con: wait for thread to finish at the same time as canceled to avoid race condition. Differential Revision: https://phab.enlightenment.org/D7401 --- src/lib/ecore_con/efl_net_ip_address.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore_con/efl_net_ip_address.c b/src/lib/ecore_con/efl_net_ip_address.c index 276f102f9c..b6d9317dee 100644 --- a/src/lib/ecore_con/efl_net_ip_address.c +++ b/src/lib/ecore_con/efl_net_ip_address.c @@ -415,6 +415,7 @@ _efl_net_ip_address_resolve_del(void *data, if (ctx->thread) { ecore_thread_cancel(ctx->thread); + ecore_thread_wait(ctx->thread, 1); ctx->thread = NULL; }