aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-16 14:03:43 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-16 14:03:43 +0000
commit752f273b24ea0206b1ff74d0cd786b1c4df39813 (patch)
tree342a1cdb39ef7862848d7b63cacbc3ed82c84e3e /channel.c
parent7e887abee959e820796737ab81b815a7cc198942 (diff)
add a missing ast_channel_unlock() evidenced by previous commits.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20477 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 8850dd52d..06548b2ae 100644
--- 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;
}