cwc.c: do not try to reconnect in the destroy state
This commit is contained in:
parent
cd713e2de7
commit
8dbe6dee8f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue