aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-30 15:47:38 -0800
committerChristopher Michael <cp.michael@samsung.com>2018-12-06 12:06:17 -0500
commitf1e98e6e9728d4dfa852aabdac79f3506db2f661 (patch)
treec938edb5800a8250485b36b09d411f6b85b014fb
parentecore_con: properly track each handler separately and destroy each only once. (diff)
downloadefl-f1e98e6e9728d4dfa852aabdac79f3506db2f661.tar.gz
ecore_con: wait for thread to finish at the same time as canceled to avoid race condition.
Differential Revision: https://phab.enlightenment.org/D7401
-rw-r--r--src/lib/ecore_con/efl_net_ip_address.c1
1 files changed, 1 insertions, 0 deletions
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;
}