mirror of
https://github.com/upa/mscp.git
synced 2026-02-14 00:54:43 +08:00
set m->tid_prepare 0 to avoid duble join
This commit is contained in:
@@ -462,6 +462,7 @@ int mscp_prepare_join(struct mscp *m)
|
||||
{
|
||||
if (m->tid_prepare) {
|
||||
pthread_join(m->tid_prepare, NULL);
|
||||
m->tid_prepare = 0;
|
||||
return m->ret_prepare;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user