Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscriptions: small fixes in subscription_reschedule()
  • Loading branch information
perexg committed Aug 12, 2014
1 parent 189f11f commit 59e552c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/subscriptions.c
Expand Up @@ -268,7 +268,6 @@ subscription_reschedule(void)
if (s->ths_postpone_end > dispatch_clock) {
if (postpone > s->ths_postpone_end - dispatch_clock)
postpone = s->ths_postpone_end - dispatch_clock;
streaming_message_t *sm;
sm = streaming_msg_create_code(SMT_GRACE, (s->ths_postpone_end - dispatch_clock) + 5);
streaming_target_deliver(s->ths_output, sm);
continue;
Expand Down Expand Up @@ -330,7 +329,7 @@ subscription_reschedule(void)
subscription_unsubscribe(s);
}

if (!postpone)
if (postpone <= 0)
postpone = 2;
gtimer_arm(&subscription_reschedule_timer,
subscription_reschedule_cb, NULL, postpone);
Expand Down

0 comments on commit 59e552c

Please sign in to comment.