winrp/thread: don't call pthread_exit on return
As the pthread_exit man page states pthread_exit is called implicitly when the start function returns.
This commit is contained in:
parent
ca150f2255
commit
81d422588e
@ -327,7 +327,7 @@ exit:
|
||||
if (thread->detached || !thread->started)
|
||||
cleanup_handle(thread);
|
||||
}
|
||||
pthread_exit((void*) (size_t) res);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static BOOL winpr_StartThread(WINPR_THREAD *thread)
|
||||
|
Loading…
Reference in New Issue
Block a user