From 14d0a2ac7412951916e220c0f04e472fc2f114f0 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 3 Dec 2007 21:47:28 +0000 Subject: further encapsulation of function in PacketQueue and PacketThrottle --- OpenSim/Region/ClientStack/PacketThrottle.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack/PacketThrottle.cs') diff --git a/OpenSim/Region/ClientStack/PacketThrottle.cs b/OpenSim/Region/ClientStack/PacketThrottle.cs index 30d7c25..0f52802 100644 --- a/OpenSim/Region/ClientStack/PacketThrottle.cs +++ b/OpenSim/Region/ClientStack/PacketThrottle.cs @@ -89,7 +89,16 @@ namespace OpenSim.Region.ClientStack public int Throttle { get {return throttle;} - set {throttle = value;} + set + { + if (value > max) { + throttle = max; + } else if (value < min) { + throttle = min; + } else { + throttle = value; + } + } } } } \ No newline at end of file -- cgit v1.1