mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Clear things out for the bearer too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2187,6 +2187,7 @@ static int zt_hangup(struct ast_channel *ast)
|
||||
ast_log(LOG_DEBUG, "Freeing up bearer channel %d\n", p->bearer->channel);
|
||||
/* Free up the bearer channel as well, and
|
||||
don't use its file descriptor anymore */
|
||||
update_conf(p->bearer);
|
||||
p->bearer->owner = NULL;
|
||||
p->bearer = NULL;
|
||||
p->subs[SUB_REAL].zfd = -1;
|
||||
|
Reference in New Issue
Block a user