]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp server: fix the bytes out updates
authorJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 17:29:48 +0000 (18:29 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 17:29:48 +0000 (18:29 +0100)
src/htsp_server.c

index 28619524c3c766be96be1b51c25c4ceb32c952de..410408c292bf7028fee00832cdaba3d9a0bb9cf3 100644 (file)
@@ -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);
+  }
 }
 
 /**