cwc: try reconnecting quickly even if no subscribtion is active

This commit is contained in:
Stefan Saraev 2012-08-26 19:56:59 +03:00 committed by Adam Sutton
parent 4eb80bd1c1
commit 3db460f459

View file

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