Lock on indication, fix agent buglet

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-08-13 18:29:58 +00:00
parent d91f72fd5f
commit 66252c0f4b
2 changed files with 7 additions and 2 deletions

View File

@@ -246,6 +246,8 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
ast_mutex_lock(&p->lock);
CHECK_FORMATS(ast, p);
if (p->chan) {
p->chan->exception = ast->exception;
p->chan->fdno = ast->fdno;
f = ast_read(p->chan);
} else
f = &null_frame;