capmt: there are multiple waiters - use pthread_cond_broadcast()

This commit is contained in:
Jaroslav Kysela 2014-06-12 19:52:31 +02:00
parent 501aa5360d
commit 58b6bd8e3c

View file

@ -1804,7 +1804,7 @@ capmt_destroy(capmt_t *capmt)
capmt->capmt_oscam == CAPMT_OSCAM_TCP ? "IP address" : "sockfile",
capmt->capmt_sockfile, capmt->capmt_port);
capmt->capmt_running = 0;
pthread_cond_signal(&capmt->capmt_cond);
pthread_cond_broadcast(&capmt->capmt_cond);
pthread_mutex_unlock(&global_lock);
pthread_join(capmt->capmt_tid, NULL);
pthread_mutex_lock(&global_lock);