aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_chanspy.c
diff options
context:
space:
mode:
authorautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 14:26:28 +0000
committerautomerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 14:26:28 +0000
commit8dff1fbd4efe6cfa057cd5720dea82f38971e9c1 (patch)
tree29607099fc9cd4bb9ed8f96fb0128b36b35d52a1 /apps/app_chanspy.c
parent16ed6b35515f32850ef68a1f0131f1e2cfce37d8 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@73366 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_chanspy.c')
-rw-r--r--apps/app_chanspy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 6b30842b8..7510c68e9 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -329,9 +329,10 @@ static int channel_spy(struct ast_channel *chan, struct ast_channel *spyee, int
ast_deactivate_generator(chan);
+ csth.spy.status = CHANSPY_DONE;
+
ast_mutex_lock(&csth.spy.lock);
if (csth.spy.chan) {
- csth.spy.status = CHANSPY_DONE;
ast_mutex_lock(&csth.spy.chan->lock);
ast_channel_spy_remove(csth.spy.chan, &csth.spy);
ast_mutex_unlock(&csth.spy.chan->lock);