]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cwc.c: do not try to reconnect in the destroy state 356/head
authorJaroslav Kysela <perex@perex.cz>
Wed, 19 Mar 2014 08:30:27 +0000 (09:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 19 Mar 2014 08:30:27 +0000 (09:30 +0100)
src/descrambler/cwc.c

index 37fa28cc1ec41ccf380f7586f12da242b23a35c3..10bd059373f1e77e1ee234b347e9414c1328c96b 100755 (executable)
@@ -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;