Fix race in agent login

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-08-06 01:39:42 +00:00
parent d7754393bb
commit 826fe52a8a

View File

@@ -237,6 +237,7 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
if (strlen(p->loginchan))
ast_hangup(p->chan);
p->chan = NULL;
p->acknowledged = 0;
}
}
if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {