]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscriptions_reschedule: fix the timer value
authorJaroslav Kysela <perex@perex.cz>
Tue, 12 Aug 2014 20:39:25 +0000 (22:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 12 Aug 2014 20:39:25 +0000 (22:39 +0200)
src/subscriptions.c

index e6e645773b774033cb8a4552546054de9615b28a..67d0bf9fe711a4a13af16ee98b927cc95068f5b3 100644 (file)
@@ -329,7 +329,7 @@ subscription_reschedule(void)
     subscription_unsubscribe(s);
   }
 
-  if (postpone <= 0)
+  if (postpone <= 0 || postpone == INT_MAX)
     postpone = 2;
   gtimer_arm(&subscription_reschedule_timer,
                   subscription_reschedule_cb, NULL, postpone);