From: Tilghman Lesher Date: Sun, 7 Jan 2007 21:24:04 +0000 (+0000) Subject: Second condition was a subset of the first, so hold was never decremented, thus hint... X-Git-Tag: 1.4.1~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcbf36432ea516db53e5f3e13f3dfd71b7c4dcba;p=thirdparty%2Fasterisk.git Second condition was a subset of the first, so hold was never decremented, thus hint stayed stuck (Issue 8747) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49831 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6664fccda0..bb831ad33c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8095,7 +8095,7 @@ static void sip_peer_hold(struct sip_pvt *p, int hold) /* If they put someone on hold, increment the value... otherwise decrement it */ if (hold) peer->onHold++; - else if (hold > 0) + else peer->onHold--; /* Request device state update */