mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Don't check availability on a hungup channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -415,7 +415,7 @@ static int agent_hangup(struct ast_channel *ast)
|
|||||||
p->abouttograb = 0;
|
p->abouttograb = 0;
|
||||||
} else if (p->dead) {
|
} else if (p->dead) {
|
||||||
free(p);
|
free(p);
|
||||||
} else {
|
} else if (p->chan) {
|
||||||
/* Not dead -- check availability now */
|
/* Not dead -- check availability now */
|
||||||
ast_pthread_mutex_lock(&p->lock);
|
ast_pthread_mutex_lock(&p->lock);
|
||||||
check_availability(p, 1);
|
check_availability(p, 1);
|
||||||
|
Reference in New Issue
Block a user