diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2018-11-30 15:47:38 -0800 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-12-06 09:29:28 +0100 |
commit | 913ea32a7aa928ff4104871a4ebc36632f53c77b (patch) | |
tree | 34b7f8ec0162fcc0b8cf7f21499791975c880fb4 /src/lib/ecore_con/efl_net_ip_address.c | |
parent | d4cb52815d082ddb55fd80306cbeecfb95de00d1 (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 '')
-rw-r--r-- | src/lib/ecore_con/efl_net_ip_address.c | 1 |
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 | ||