From: Stefan Saraev Date: Sun, 26 Aug 2012 16:56:59 +0000 (+0300) Subject: cwc: try reconnecting quickly even if no subscribtion is active X-Git-Tag: 3.3~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3db460f4590ca2372dc2e5c8e031bce7f35541b9;p=thirdparty%2Ftvheadend.git cwc: try reconnecting quickly even if no subscribtion is active --- diff --git a/src/cwc.c b/src/cwc.c index 037b7f4c6..51b8f2e75 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;