cwc: try reconnecting quickly even if no subscribtion is active
This commit is contained in:
parent
4eb80bd1c1
commit
3db460f459
1 changed files with 2 additions and 7 deletions
|
@ -1170,13 +1170,8 @@ cwc_thread(void *aux)
|
|||
cwc->cwc_hostname, cwc->cwc_port);
|
||||
}
|
||||
|
||||
if(subscriptions_active()) {
|
||||
if(attempts == 1)
|
||||
continue; // Retry immediately
|
||||
d = 3;
|
||||
} else {
|
||||
d = 60;
|
||||
}
|
||||
if(attempts == 1) continue; // Retry immediately
|
||||
d = 3;
|
||||
|
||||
ts.tv_sec = time(NULL) + d;
|
||||
ts.tv_nsec = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue