Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cwc: faster reconfigure
  • Loading branch information
perexg committed Oct 5, 2014
1 parent ef3ed00 commit 72549c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/descrambler/cwc.c
Expand Up @@ -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);

Expand Down

0 comments on commit 72549c7

Please sign in to comment.