From fb7757440f7695225313c0181151690bfc72b404 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 8 May 2006 11:26:01 +0000 Subject: [PATCH] remove a check of the result from ast_mutex_lock git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25446 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_mixmonitor.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index d4e374a4b6..99f8850c60 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);