mirror of
https://github.com/upa/mscp.git
synced 2026-05-19 02:57:30 +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) {
|
if (m->tid_prepare) {
|
||||||
pthread_join(m->tid_prepare, NULL);
|
pthread_join(m->tid_prepare, NULL);
|
||||||
|
m->tid_prepare = 0;
|
||||||
return m->ret_prepare;
|
return m->ret_prepare;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user