mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-02 04:53:32 -07:00
taskprocessor.c: Fix endless loop in CLI "core show taskprocessor"
Revert 48dd99d2b4 which caused an infinite
loop only in v11.
ASTERISK-25701 #close
Reported by: ibercom
Change-Id: I0d9103f4dc03fa31bb8d5e7a7a73b467bbac5349
This commit is contained in:
@@ -284,7 +284,7 @@ static char *cli_tps_report(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
|
||||
maxqsize = p->stats->max_qsize;
|
||||
processed = p->stats->_tasks_processed_count;
|
||||
ast_cli(a->fd, "\n%24s %17lu %12lu %12lu", name, processed, qsize, maxqsize);
|
||||
ast_taskprocessor_unreference(p);
|
||||
ao2_ref(p, -1);
|
||||
}
|
||||
ao2_iterator_destroy(&i);
|
||||
tcount = ao2_container_count(tps_singletons);
|
||||
|
||||
Reference in New Issue
Block a user