https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49831 | tilghman | 2007-01-07 15:24:04 -0600 (Sun, 07 Jan 2007) | 2 lines
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/trunk@49832
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/* 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 */