Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscriptions: fix inverted condition for CA check
  • Loading branch information
perexg committed Apr 5, 2017
1 parent 9f12730 commit eb3e25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscriptions.c
Expand Up @@ -331,7 +331,7 @@ subscription_start_instance
s->ths_flags, s->ths_timeout,
mclk() > s->ths_postpone_end ?
0 : mono2sec(s->ths_postpone_end - mclk()));
if (si && (s->ths_flags & SUBSCRIPTION_CONTACCESS))
if (si && (s->ths_flags & SUBSCRIPTION_CONTACCESS) == 0)
mtimer_arm_rel(&s->ths_ca_check_timer, subscription_ca_check_cb, s, s->ths_ca_timeout);
return s->ths_current_instance = si;
}
Expand Down

0 comments on commit eb3e25f

Please sign in to comment.