From 58b6bd8e3ce9770ba4cf2bec1334a9f761d42898 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 12 Jun 2014 19:52:31 +0200 Subject: [PATCH] capmt: there are multiple waiters - use pthread_cond_broadcast() --- src/descrambler/capmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index e10afa5d..aa6e0080 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -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);