diff options
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs index 5b125ea..0ac56ec 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs | |||
@@ -149,13 +149,16 @@ namespace OpenSim.Region.ClientStack.Linden | |||
149 | HasEvents = (x, y) => { return this.responses.ContainsKey(x); }; | 149 | HasEvents = (x, y) => { return this.responses.ContainsKey(x); }; |
150 | GetEvents = (x, y, s) => | 150 | GetEvents = (x, y, s) => |
151 | { | 151 | { |
152 | try | 152 | lock (responses) |
153 | { | 153 | { |
154 | return this.responses[x]; | 154 | try |
155 | } | 155 | { |
156 | finally | 156 | return this.responses[x]; |
157 | { | 157 | } |
158 | responses.Remove(x); | 158 | finally |
159 | { | ||
160 | responses.Remove(x); | ||
161 | } | ||
159 | } | 162 | } |
160 | }; | 163 | }; |
161 | 164 | ||
@@ -218,14 +221,14 @@ namespace OpenSim.Region.ClientStack.Linden | |||
218 | response["content_type"] = "text/plain"; | 221 | response["content_type"] = "text/plain"; |
219 | response["keepalive"] = false; | 222 | response["keepalive"] = false; |
220 | response["reusecontext"] = false; | 223 | response["reusecontext"] = false; |
221 | 224 | lock (responses) | |
222 | responses[requestID] = response; | 225 | responses[requestID] = response; |
223 | return; | 226 | return; |
224 | } | 227 | } |
225 | 228 | ||
226 | response = m_getTextureHandler.Handle(request); | 229 | response = m_getTextureHandler.Handle(request); |
227 | 230 | lock (responses) | |
228 | responses[requestID] = response; | 231 | responses[requestID] = response; |
229 | } | 232 | } |
230 | } | 233 | } |
231 | 234 | ||