From: Mark Spencer Date: Wed, 7 Apr 2004 14:11:49 +0000 (+0000) Subject: Don't say we're unable to find the channel if we're able to find it. X-Git-Tag: 1.0.0-rc1~775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1ffc320e42cccbc256b380578e074603f52a8a5;p=thirdparty%2Fasterisk.git Don't say we're unable to find the channel if we're able to find it. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2646 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 7cf148145c..c0af6cf351 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7132,6 +7132,8 @@ static int zap_show_channel(int fd, int argc, char **argv) } else { ast_cli(fd, "Actual Hookstate: %s\n", ps.rxisoffhook ? "Offhook" : "Onhook"); } + ast_mutex_unlock(&iflock); + return RESULT_SUCCESS; } tmp = tmp->next; }