aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-04-03 15:28:50 +0000
committerJustin Clarke Casey2008-04-03 15:28:50 +0000
commit5fe4a39927754ce797aa728ed41d189cab95b058 (patch)
tree60ce61ee52f62895f7d5e9c8b12f1cfb924b40c3 /OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs
parent* Resolve mantis 849 (diff)
downloadopensim-SC_OLD-5fe4a39927754ce797aa728ed41d189cab95b058.zip
opensim-SC_OLD-5fe4a39927754ce797aa728ed41d189cab95b058.tar.gz
opensim-SC_OLD-5fe4a39927754ce797aa728ed41d189cab95b058.tar.bz2
opensim-SC_OLD-5fe4a39927754ce797aa728ed41d189cab95b058.tar.xz
* Adding request time limiting strategy for texture requests, though this isn't useable yet
Diffstat (limited to 'OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs')
-rw-r--r--OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs b/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs
index 82122fc..85ff2bd 100644
--- a/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs
+++ b/OpenSim/Framework/Communications/Limit/RepeatLimitStrategy.cs
@@ -80,7 +80,7 @@ namespace OpenSim.Framework.Communications.Limit
80 /// </summary> 80 /// </summary>
81 public bool IsFirstRefusal(TId id) 81 public bool IsFirstRefusal(TId id)
82 { 82 {
83 if (m_maxRequests + 1 == requestCounts[id]) 83 if (requestCounts.ContainsKey(id) && m_maxRequests + 1 == requestCounts[id])
84 { 84 {
85 return true; 85 return true;
86 } 86 }