aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 3f6f12fd2..c26bb67f2 100755
--- a/channel.c
+++ b/channel.c
@@ -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 */