set m->tid_prepare 0 to avoid duble join

This commit is contained in:
Ryo Nakamura
2023-03-15 21:56:46 +09:00
parent a923d40ada
commit 3bce4ec277

View File

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