add a missing ast_channel_unlock() evidenced by previous commits.
authorLuigi Rizzo <rizzo@icir.org>
Sun, 16 Apr 2006 14:03:43 +0000 (14:03 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sun, 16 Apr 2006 14:03:43 +0000 (14:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 8850dd5..06548b2 100644 (file)
--- a/channel.c
+++ b/channel.c
@@ -1905,9 +1905,9 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
        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;
        }