diff options
Diffstat (limited to 'apps/app_softhangup.c')
-rw-r--r-- | apps/app_softhangup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c index b4e0ccc5f..ee6c92a05 100644 --- a/apps/app_softhangup.c +++ b/apps/app_softhangup.c @@ -104,11 +104,11 @@ static int softhangup_exec(struct ast_channel *chan, void *data) ast_log(LOG_WARNING, "Soft hanging %s up.\n", c->name); ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT); if (!ast_test_flag(&flags, OPTION_ALL)) { - ast_mutex_unlock(&c->lock); + ast_channel_unlock(c); break; } } - ast_mutex_unlock(&c->lock); + ast_channel_unlock(c); } return 0; |