aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pbx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 4f71fc5c1..c45ec8e3b 100644
--- a/pbx.c
+++ b/pbx.c
@@ -3652,7 +3652,6 @@ struct ast_context *ast_context_create(struct ast_context **extcontexts, const c
tmp = *local_contexts;
while(tmp) {
if (!strcasecmp(tmp->name, name)) {
- ast_mutex_unlock(&conlock);
ast_log(LOG_WARNING, "Tried to register context '%s', already in use\n", name);
if (!extcontexts)
ast_mutex_unlock(&conlock);