[Asterisk-code-review] taskprocessor.c: Fix endless loop in CLI "core show taskproc... (asterisk[11])
Richard Mudgett
asteriskteam at digium.com
Mon Jan 18 17:00:57 CST 2016
Richard Mudgett has uploaded a new change for review.
https://gerrit.asterisk.org/2033
Change subject: taskprocessor.c: Fix endless loop in CLI "core show taskprocessor"
......................................................................
taskprocessor.c: Fix endless loop in CLI "core show taskprocessor"
Revert 48dd99d2b4d6938b528f9f6aca98d36b60c5513b which caused an infinite
loop only in v11.
ASTERISK-25701 #close
Reported by: ibercom
Change-Id: I0d9103f4dc03fa31bb8d5e7a7a73b467bbac5349
---
M main/taskprocessor.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/33/2033/1
diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 29abebe..99ad801 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -284,7 +284,7 @@
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);
--
To view, visit https://gerrit.asterisk.org/2033
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d9103f4dc03fa31bb8d5e7a7a73b467bbac5349
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-code-review
mailing list