From: Jaroslav Kysela Date: Wed, 19 Mar 2014 08:30:27 +0000 (+0100) Subject: cwc.c: do not try to reconnect in the destroy state X-Git-Tag: v4.1~2195^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F356%2Fhead;p=thirdparty%2Ftvheadend.git cwc.c: do not try to reconnect in the destroy state --- diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index 37fa28cc1..10bd05937 100755 --- a/src/descrambler/cwc.c +++ b/src/descrambler/cwc.c @@ -1156,6 +1156,7 @@ cwc_thread(void *aux) while(cwc->cwc_running && cwc->cwc_enabled == 0) pthread_cond_wait(&cwc->cwc_cond, &cwc_mutex); + if (cwc->cwc_running == 0) continue; snprintf(hostname, sizeof(hostname), "%s", cwc->cwc_hostname); port = cwc->cwc_port;