diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-01-05 16:54:06 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-01-08 21:05:16 -0600 |
commit | b025e1982fa21406c32b9777793f3a62554fdd0d (patch) | |
tree | 4fbdf153c93f97390c20c519b1864b85989f2ed0 /main/taskprocessor.c | |
parent | 1fb39aa8a06889915e0398dcb32435424b19d71e (diff) |
taskprocessor.c: Add CLI "core ping taskprocessor" missing unlock.
Change-Id: I78247e0faf978bf850b5ba4e9f4933ab3c59d17b
Diffstat (limited to 'main/taskprocessor.c')
-rw-r--r-- | main/taskprocessor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/taskprocessor.c b/main/taskprocessor.c index dfead22ab..bea65a14c 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -399,6 +399,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; |