[Asterisk-code-review] taskprocessor.c: Fix endless loop in CLI "core show taskproc... (asterisk[11])

Joshua Colp asteriskteam at digium.com
Mon Jan 18 19:24:56 CST 2016


Joshua Colp has submitted this change and it was merged.

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(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
  Corey Farrell: Looks good to me, but someone else must approve



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: merged
Gerrit-Change-Id: I0d9103f4dc03fa31bb8d5e7a7a73b467bbac5349
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list