aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
index 4851b33..89f5da3 100644
--- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
@@ -48,7 +48,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
48 public string url; 48 public string url;
49 public UUID urlcode; 49 public UUID urlcode;
50 public Dictionary<UUID, RequestData> requests; 50 public Dictionary<UUID, RequestData> requests;
51 public bool responseSent;
52 } 51 }
53 52
54 public class RequestData 53 public class RequestData
@@ -61,6 +60,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
61 //public ManualResetEvent ev; 60 //public ManualResetEvent ev;
62 public bool requestDone; 61 public bool requestDone;
63 public int startTime; 62 public int startTime;
63 public bool responseSent;
64 public string uri; 64 public string uri;
65 } 65 }
66 66
@@ -200,13 +200,13 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
200 if (m_RequestMap.ContainsKey(request)) 200 if (m_RequestMap.ContainsKey(request))
201 { 201 {
202 UrlData urlData = m_RequestMap[request]; 202 UrlData urlData = m_RequestMap[request];
203 if (!urlData.responseSent) 203 if (!urlData.requests[request].responseSent)
204 { 204 {
205 urlData.requests[request].responseCode = status; 205 urlData.requests[request].responseCode = status;
206 urlData.requests[request].responseBody = body; 206 urlData.requests[request].responseBody = body;
207 //urlData.requests[request].ev.Set(); 207 //urlData.requests[request].ev.Set();
208 urlData.requests[request].requestDone = true; 208 urlData.requests[request].requestDone = true;
209 urlData.responseSent = true; 209 urlData.requests[request].responseSent = true;
210 } 210 }
211 } 211 }
212 else 212 else