aboutsummaryrefslogtreecommitdiffstats
path: root/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'sched.c')
-rwxr-xr-xsched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sched.c b/sched.c
index 2ab0a6bc1..391a627c5 100755
--- a/sched.c
+++ b/sched.c
@@ -253,7 +253,7 @@ int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, vo
res = tmp->id;
}
}
- ast_mutex_lock(&con->lock);
+ ast_mutex_unlock(&con->lock);
return res;
}