mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user