]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cwc: try reconnecting quickly even if no subscribtion is active
authorStefan Saraev <stefan@saraev.ca>
Sun, 26 Aug 2012 16:56:59 +0000 (19:56 +0300)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 31 Aug 2012 10:58:15 +0000 (11:58 +0100)
src/cwc.c

index 037b7f4c6404bb8b587209ac1d8be7e91634020c..51b8f2e75de188d8ac66c7fb563bf62eb8af49cf 100644 (file)
--- 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;