mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Don't double lock the stream
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -647,8 +647,10 @@ int ast_hangup(struct ast_channel *chan)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
free_translation(chan);
|
free_translation(chan);
|
||||||
if (chan->stream)
|
if (chan->stream)
|
||||||
ast_stopstream(chan);
|
ast_closestream(chan->stream);
|
||||||
|
if (chan->vstream)
|
||||||
|
ast_closestream(chan->vstream);
|
||||||
if (chan->sched)
|
if (chan->sched)
|
||||||
sched_context_destroy(chan->sched);
|
sched_context_destroy(chan->sched);
|
||||||
/* Clear any tone stuff remaining */
|
/* Clear any tone stuff remaining */
|
||||||
|
|||||||
Reference in New Issue
Block a user