From a5343c5404fc351172abd437e47ca3f34a1570db Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 17 Dec 2008 09:55:10 +0000 Subject: Add repecting the min and max values back in --- OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs index 70a9dec..31efee7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs @@ -100,6 +100,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP get { return m_currentThrottle; } set { + if (value < m_minAllowableThrottle) + { + m_currentThrottle = m_minAllowableThrottle; + CalcBits(); + return; + } + if (value > m_maxAllowableThrottle) + { + m_currentThrottle = m_maxAllowableThrottle; + CalcBits(); + return; + } m_currentThrottle = value; CalcBits(); -- cgit v1.1