Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscriptions: send GRACE also for the MUX subscriptions
  • Loading branch information
perexg committed Aug 18, 2014
1 parent adc5999 commit 51ea193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/subscriptions.c
Expand Up @@ -779,9 +779,12 @@ subscription_create_from_mux
sm = streaming_msg_create_data(SMT_START, ss);
streaming_target_deliver(s->ths_output, sm);

r = (mi->mi_get_grace ? mi->mi_get_grace(mi, mm) : 0) + 20;
sm = streaming_msg_create_code(SMT_GRACE, r);
streaming_target_deliver(s->ths_output, sm);

pthread_mutex_unlock(&mi->mi_output_lock);

r = (mi->mi_get_grace ? mi->mi_get_grace(mi, mm) : 0) + 20;
gtimer_arm(&s->ths_receive_timer, mux_data_timeout, s, r);

return s;
Expand Down

0 comments on commit 51ea193

Please sign in to comment.