forked from enlightenment/efl
* ecore: fix error detection of ecore_pipe_add.
SVN revision: 51926
This commit is contained in:
parent
ea791dccc5
commit
d098e05951
|
@ -667,7 +667,7 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
|
|||
if (!pth) goto on_error;
|
||||
|
||||
pth->p = ecore_pipe_add(_ecore_thread_handler, NULL);
|
||||
if (pth->p) goto on_error;
|
||||
if (!pth->p) goto on_error;
|
||||
|
||||
if (pthread_create(&pth->thread, NULL, (void *) _ecore_thread_worker, pth) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue