stats: Fix handling of multiple resporters
Currently the reporter loop is aborted, if the event would be ignored
due to an insufficient max_level. Thus the reporters that happen to
be stored afterwards would be skipped even if their level were
sufficient.
This commit replaces the conditional 'return' statement by a
considtional 'continue' statement to ensure the processing of the
list tail.
Sponsored-by: On-Waves ehf
diff --git a/src/stats.c b/src/stats.c
index 0a1a148..d83fd87 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -593,7 +593,7 @@
if (!osmo_stats_reporter_check_config(srep,
ctrg->idx, ctrg->desc->class_id))
- return 0;
+ continue;
osmo_stats_reporter_send_counter(srep, ctrg, desc,
ctr->current, delta);
@@ -647,7 +647,7 @@
if (!osmo_stats_reporter_check_config(srep,
statg->idx, statg->desc->class_id))
- return 0;
+ continue;
osmo_stats_reporter_send_item(srep, statg,
item->desc, value);