mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user