aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 08f2e7aa9..f05a22ac0 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -340,10 +340,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 */