capmt: another quick mutex fix

This commit is contained in:
Jaroslav Kysela 2014-10-05 16:27:02 +02:00
parent bd91b96bf7
commit e00c6ff975

View file

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