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
1.4
Tilghman Lesher 19 years ago
parent 9e621e99a5
commit dcbf36432e

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

Loading…
Cancel
Save