automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@74742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge Script
2007-07-11 21:24:40 +00:00
parent c6fa0ff3f4
commit e5bf71bed5

View File

@@ -1998,6 +1998,8 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
ast_device_state_changed("Agent/%s", p->agent);
while (res >= 0) {
ast_mutex_lock(&p->lock);
if (!p->loginstart && p->chan)
ast_softhangup(p->chan, AST_SOFTHANGUP_EXPLICIT);
if (p->chan != chan)
res = -1;
ast_mutex_unlock(&p->lock);