[Asterisk-code-review] taskprocessor.c: Add CLI "core ping taskprocessor" missing u... (asterisk[master])

Joshua Colp asteriskteam at digium.com
Tue Jan 12 13:18:35 CST 2016


Joshua Colp has submitted this change and it was merged.

Change subject: taskprocessor.c: Add CLI "core ping taskprocessor" missing unlock.
......................................................................


taskprocessor.c: Add CLI "core ping taskprocessor" missing unlock.

Change-Id: I78247e0faf978bf850b5ba4e9f4933ab3c59d17b
---
M main/taskprocessor.c
1 file changed, 1 insertion(+), 0 deletions(-)

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



diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index dfead22..bea65a1 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -399,6 +399,7 @@
 	ts.tv_nsec = when.tv_usec * 1000;
 	ast_mutex_lock(&cli_ping_cond_lock);
 	if (ast_taskprocessor_push(tps, tps_ping_handler, 0) < 0) {
+		ast_mutex_unlock(&cli_ping_cond_lock);
 		ast_cli(a->fd, "\nping failed: could not push task to %s\n\n", name);
 		ao2_ref(tps, -1);
 		return CLI_FAILURE;

-- 
To view, visit https://gerrit.asterisk.org/1951
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I78247e0faf978bf850b5ba4e9f4933ab3c59d17b
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>



More information about the asterisk-code-review mailing list