From: Jaroslav Kysela Date: Tue, 5 Jan 2016 17:29:48 +0000 (+0100) Subject: htsp server: fix the bytes out updates X-Git-Tag: v4.2.1~1210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdda940cafea2fc322b3548aef16144fdb9ffb3b;p=thirdparty%2Ftvheadend.git htsp server: fix the bytes out updates --- 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); + } } /**