[asterisk-commits] russell: branch russell/ast_channel_ao2 r183818 - /team/russell/ast_channel_a...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 23 15:53:30 CDT 2009


Author: russell
Date: Mon Mar 23 15:53:27 2009
New Revision: 183818

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183818
Log:
Remove more unnecessary channel locking

Modified:
    team/russell/ast_channel_ao2/res/res_monitor.c

Modified: team/russell/ast_channel_ao2/res/res_monitor.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/ast_channel_ao2/res/res_monitor.c?view=diff&rev=183818&r1=183817&r2=183818
==============================================================================
--- team/russell/ast_channel_ao2/res/res_monitor.c (original)
+++ team/russell/ast_channel_ao2/res/res_monitor.c Mon Mar 23 15:53:27 2009
@@ -683,16 +683,12 @@
 		return 0;
 	}
 
-	ast_channel_lock(c);
-
 	if (ast_monitor_change_fname(c, fname, 1)) {
-		ast_channel_unlock(c);
 		c = ast_channel_unref(c);
 		astman_send_error(s, m, "Could not change monitored filename of channel");
 		return 0;
 	}
 
-	ast_channel_unlock(c);
 	c = ast_channel_unref(c);
 
 	astman_send_ack(s, m, "Changed monitor filename");




More information about the asterisk-commits mailing list