cwc: faster reconfigure

This commit is contained in:
Jaroslav Kysela 2014-10-05 16:46:32 +02:00
parent ef3ed0086a
commit 72549c7172

View file

@ -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);