cwc.c: do not try to reconnect in the destroy state

This commit is contained in:
Jaroslav Kysela 2014-03-19 09:30:27 +01:00
parent cd713e2de7
commit 8dbe6dee8f

View file

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