mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 02:18:15 +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;
|
||||
}
|
||||
free_translation(chan);
|
||||
if (chan->stream)
|
||||
ast_stopstream(chan);
|
||||
if (chan->stream)
|
||||
ast_closestream(chan->stream);
|
||||
if (chan->vstream)
|
||||
ast_closestream(chan->vstream);
|
||||
if (chan->sched)
|
||||
sched_context_destroy(chan->sched);
|
||||
/* Clear any tone stuff remaining */
|
||||
|
||||
Reference in New Issue
Block a user