From 43cc15357e929fe33233a50c4fa99722ae7b501f Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 5 Apr 2014 13:46:07 +0300 Subject: [PATCH] Optimized re-sending. --- sectionfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sectionfilter.c b/sectionfilter.c index 6b3ae00..395b7a9 100644 --- a/sectionfilter.c +++ b/sectionfilter.c @@ -220,9 +220,9 @@ bool cSatipSectionFilter::Send(void) ERROR_IF(len < 0 && errno != EAGAIN, "send()"); if (len > 0) { ringBufferM->Drop(section); + result = !!ringBufferM->Available(); // Update statistics AddSectionStatistic(len, 1); - result = true; } } }