From 72549c71720c282431fb9c1d5fea4ce80133cfdd Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 5 Oct 2014 16:46:32 +0200 Subject: [PATCH] cwc: faster reconfigure --- src/descrambler/cwc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/descrambler/cwc.c b/src/descrambler/cwc.c index 603b7a32..0dc61502 100755 --- a/src/descrambler/cwc.c +++ b/src/descrambler/cwc.c @@ -1195,7 +1195,10 @@ cwc_thread(void *aux) } if(cwc->cwc_running == 0) continue; - if(attempts == 1) continue; // Retry immediately + if(attempts == 1 || cwc->cwc_reconfigure) { + cwc->cwc_reconfigure = 0; + continue; // Retry immediately + } caclient_set_status((caclient_t *)cwc, CACLIENT_STATUS_DISCONNECTED);