From: Jaroslav Kysela Date: Tue, 12 Aug 2014 20:39:25 +0000 (+0200) Subject: subscriptions_reschedule: fix the timer value X-Git-Tag: v4.1~1565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5745e3e0d4267d6939ea2b58de1cbb2513caee31;p=thirdparty%2Ftvheadend.git subscriptions_reschedule: fix the timer value --- diff --git a/src/subscriptions.c b/src/subscriptions.c index e6e645773..67d0bf9fe 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -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);