]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
cclient: check keep-alive also when no poll event occurs, fixes #5445
authorJaroslav Kysela <perex@perex.cz>
Sat, 22 Dec 2018 17:42:28 +0000 (18:42 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 22 Dec 2018 17:42:28 +0000 (18:42 +0100)
src/descrambler/cclient.c

index 2f587df8f5c8d27487b3a9b769180e0fee9f4bd6..4a3dd15269212cead8bca3f9724df5fb4fa86578 100644 (file)
@@ -608,7 +608,7 @@ cc_session(cclient_t *cc)
     r = tvhpoll_wait(poll, &ev, 1, 1000);
     tvh_mutex_lock(&cc->cc_mutex);
     if (r == 0)
-      continue;
+      goto keepalive;
     if (r < 0 && ERRNO_AGAIN(errno))
       continue;
     if (r < 0)
@@ -642,6 +642,7 @@ cc_session(cclient_t *cc)
       }
       free(cm);
     }
+keepalive:
     if (mono < mclk()) {
       mono = mclk() + sec2mono(cc->cc_keepalive_interval);
       if (cc->cc_keepalive)