summaryrefslogtreecommitdiff
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
parent2d12a6eb4c392f308d24a4cbdc9890635822a2b4 (diff)
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,
415 if (ctx->thread) 415 if (ctx->thread)
416 { 416 {
417 ecore_thread_cancel(ctx->thread); 417 ecore_thread_cancel(ctx->thread);
418 ecore_thread_wait(ctx->thread, 1);
418 ctx->thread = NULL; 419 ctx->thread = NULL;
419 } 420 }
420 421