From bdda940cafea2fc322b3548aef16144fdb9ffb3b Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 5 Jan 2016 18:29:48 +0100 Subject: [PATCH] htsp server: fix the bytes out updates --- src/htsp_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/htsp_server.c b/src/htsp_server.c index 28619524c..410408c29 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -2291,8 +2291,10 @@ htsp_method_getTicket(htsp_connection_t *htsp, htsmsg_t *in) static void _bytes_out_cb(void *aux) { htsp_subscription_t *hs = aux; - if (hs->hs_s) + if (hs->hs_s) { subscription_add_bytes_out(hs->hs_s, atomic_exchange(&hs->hs_s_bytes_out, 0)); + gtimer_arm_ms(&hs->hs_s_bytes_out_timer, _bytes_out_cb, hs, 200); + } } /** -- 2.47.3