subscriptions_reschedule: fix the timer value

This commit is contained in:
Jaroslav Kysela 2014-08-12 22:39:25 +02:00
parent 1648168cdb
commit 5745e3e0d4

View 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);