diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 11:26:01 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 11:26:01 +0000 |
commit | f0e9d7485d1db1a4e5821f7b13cda022070d75d1 (patch) | |
tree | 954b342292ef9db5e7996ad82b90c519424831e9 /apps/app_mixmonitor.c | |
parent | 1c7d723a5bd3319cd6b8977f72ca36105e780d71 (diff) |
remove a check of the result from ast_mutex_lock
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25446 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_mixmonitor.c')
-rw-r--r-- | apps/app_mixmonitor.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index d4e374a4b..99f8850c6 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -410,13 +410,9 @@ static int stop_mixmonitor_exec(struct ast_channel *chan, void *data) LOCAL_USER_ADD(u); - if (!ast_mutex_lock(&chan->lock)) { - ast_channel_spy_stop_by_type(chan, mixmonitor_spy_type); - ast_mutex_unlock(&chan->lock); - } else { - ast_log(LOG_WARNING, "Could not lock %s to stop MixMonitor on it\n", - chan->name); - } + ast_mutex_lock(&chan->lock); + ast_channel_spy_stop_by_type(chan, mixmonitor_spy_type); + ast_mutex_unlock(&chan->lock); LOCAL_USER_REMOVE(u); |