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

Richard Mudgett asteriskteam at digium.com
Fri Jan 8 14:06:51 CST 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/1942

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


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/42/1942/1

diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 7c50089..0712a92 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/1942
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I78247e0faf978bf850b5ba4e9f4933ab3c59d17b
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list