From: Richard Mudgett Date: Tue, 5 Jan 2016 22:54:06 +0000 (-0600) Subject: taskprocessor.c: Add CLI "core ping taskprocessor" missing unlock. X-Git-Tag: 11.22.0-rc1~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32cbf1e429788d44a7bddddba47dfc4dd4a5c4d6;p=thirdparty%2Fasterisk.git taskprocessor.c: Add CLI "core ping taskprocessor" missing unlock. Change-Id: I78247e0faf978bf850b5ba4e9f4933ab3c59d17b --- diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 60fc3229c1..99ad801c6c 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -238,6 +238,7 @@ static char *cli_tps_ping(struct ast_cli_entry *e, int cmd, struct ast_cli_args 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;