further encapsulation of function in PacketQueue and PacketThrottle

This commit is contained in:
Sean Dague
2007-12-03 21:47:28 +00:00
parent 8f58a9a107
commit 14d0a2ac74
2 changed files with 172 additions and 4 deletions

View File

@@ -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;
}
}
}
}
}