aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_chanspy.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 17:44:48 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-04 17:44:48 +0000
commit75b61543d9f424d261dce628eb406d8d74a5dec5 (patch)
tree0c59ad076b2e60bc038d4612e2ef39c1e47b9003 /apps/app_chanspy.c
parent3df1541ef94756f2bedebb4efa244c70fca19119 (diff)
Revert my previous change because it was stupid
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@173396 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_chanspy.c')
-rw-r--r--apps/app_chanspy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index fa27d113f..18e4972a5 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -252,10 +252,8 @@ static int channel_spy(struct ast_channel *chan, struct chanspy_ds *spyee_chansp
}
ast_mutex_unlock(&spyee_chanspy_ds->lock);
- if (!spyee) {
- ast_channel_unlock(spyee);
+ if (!spyee)
return 0;
- }
/* We now hold the channel lock on spyee */