capmt: another quick mutex fix
This commit is contained in:
parent
bd91b96bf7
commit
e00c6ff975
1 changed files with 1 additions and 1 deletions
|
@ -1506,7 +1506,7 @@ capmt_thread(void *aux)
|
|||
|
||||
tvhlog(LOG_INFO, "capmt", "%s: Automatic reconnection attempt in in %d seconds", idnode_get_title(&capmt->cac_id), d);
|
||||
|
||||
pthread_cond_timedwait(&capmt->capmt_cond, &global_lock, &ts);
|
||||
pthread_cond_timedwait(&capmt->capmt_cond, &capmt->capmt_mutex, &ts);
|
||||
|
||||
pthread_mutex_unlock(&capmt->capmt_mutex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue