[asterisk-commits] trunk r25446 - /trunk/apps/app_mixmonitor.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 8 04:26:01 MST 2006


Author: russell
Date: Mon May  8 06:26:01 2006
New Revision: 25446

URL: http://svn.digium.com/view/asterisk?rev=25446&view=rev
Log:
remove a check of the result from ast_mutex_lock

Modified:
    trunk/apps/app_mixmonitor.c

Modified: trunk/apps/app_mixmonitor.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_mixmonitor.c?rev=25446&r1=25445&r2=25446&view=diff
==============================================================================
--- trunk/apps/app_mixmonitor.c (original)
+++ trunk/apps/app_mixmonitor.c Mon May  8 06:26:01 2006
@@ -410,13 +410,9 @@
 
 	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);
 



More information about the asterisk-commits mailing list