From eb3e25fb19deaba0f7c44347e13eb04f39eb2a24 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 5 Apr 2017 20:30:09 +0200 Subject: [PATCH] subscriptions: fix inverted condition for CA check --- src/subscriptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subscriptions.c b/src/subscriptions.c index d23e807d8..a061f32a8 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -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; } -- 2.47.2