[svn-commits] russell: branch russell/ast_channel_ao2 r183635 - /team/russell/ast_channel_a...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Mar 21 12:12:28 CDT 2009


Author: russell
Date: Sat Mar 21 12:12:25 2009
New Revision: 183635

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183635
Log:
Move the channel unlock to a more logical place

Modified:
    team/russell/ast_channel_ao2/main/channel.c

Modified: team/russell/ast_channel_ao2/main/channel.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/ast_channel_ao2/main/channel.c?view=diff&rev=183635&r1=183634&r2=183635
==============================================================================
--- team/russell/ast_channel_ao2/main/channel.c (original)
+++ team/russell/ast_channel_ao2/main/channel.c Sat Mar 21 12:12:25 2009
@@ -1245,11 +1245,9 @@
 			}
 		}
 
+		ast_channel_unlock(chan);
+
 		break; /* chan points to the next chan desired. */
-	}
-
-	if (chan) {
-		ast_channel_unlock(chan);
 	}
 
 	return chan;




More information about the svn-commits mailing list