[asterisk-commits] trunk r20477 - /trunk/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Apr 16 07:03:45 MST 2006


Author: rizzo
Date: Sun Apr 16 09:03:43 2006
New Revision: 20477

URL: http://svn.digium.com/view/asterisk?rev=20477&view=rev
Log:
add a missing ast_channel_unlock() evidenced by previous commits.


Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=20477&r1=20476&r2=20477&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sun Apr 16 09:03:43 2006
@@ -1905,9 +1905,9 @@
 	if (chan->fds[AST_GENERATOR_FD] > -1 && chan->fdno == AST_GENERATOR_FD) {
 		void *tmp = chan->generatordata;
 		chan->generatordata = NULL;     /* reset to let ast_write get through */
-		/* XXX don't we miss an ast_channel_unlock(chan); here ? */
 		chan->generator->generate(chan, tmp, -1, -1);
 		chan->generatordata = tmp;
+		ast_channel_unlock(chan);
 		return &ast_null_frame;
 	}
 



More information about the asterisk-commits mailing list