From: Mark Michelson Date: Wed, 4 Feb 2009 17:44:48 +0000 (+0000) Subject: Revert my previous change because it was stupid X-Git-Tag: 1.4.24-rc1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82937be5539fe80a91f6d1b3632a479100230769;p=thirdparty%2Fasterisk.git Revert my previous change because it was stupid git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@173396 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index fa27d113f6..18e4972a5e 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 */