summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-30 15:47:38 -0800
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-06 09:29:28 +0100
commit913ea32a7aa928ff4104871a4ebc36632f53c77b (patch)
tree34b7f8ec0162fcc0b8cf7f21499791975c880fb4 /src/lib/ecore_con
parentd4cb52815d082ddb55fd80306cbeecfb95de00d1 (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
Diffstat (limited to 'src/lib/ecore_con')
-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 276f102..b6d9317 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