ecore_con: wait for thread to finish at the same time as canceled to avoid race condition.

Differential Revision: https://phab.enlightenment.org/D7401
This commit is contained in:
Cedric BAIL 2018-11-30 15:47:38 -08:00 committed by Christopher Michael
parent 2d12a6eb4c
commit f1e98e6e97
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}