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
This commit is contained in:
Tilghman Lesher
2007-01-07 21:24:04 +00:00
parent 9e621e99a5
commit dcbf36432e

View File

@@ -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 */