From 3db460f4590ca2372dc2e5c8e031bce7f35541b9 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sun, 26 Aug 2012 19:56:59 +0300 Subject: [PATCH] cwc: try reconnecting quickly even if no subscribtion is active --- src/cwc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cwc.c b/src/cwc.c index 037b7f4c..51b8f2e7 100644 --- a/src/cwc.c +++ b/src/cwc.c @@ -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;