aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs b/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
index 48e1370..aa70362 100644
--- a/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
+++ b/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
@@ -108,13 +108,16 @@ namespace OpenSim.Framework.Servers.HttpServer
108 } 108 }
109 finally 109 finally
110 { 110 {
111 buffer.Close();
111 respStream.Close(); 112 respStream.Close();
112 response.Close(); 113 response.Close();
113 } 114 }
114 115
115 action(deserial); 116 action(deserial);
117
116 }, null); 118 }, null);
117 }, null); 119 }, null);
120
118 121
119 return; 122 return;
120 } 123 }
@@ -162,7 +165,7 @@ namespace OpenSim.Framework.Servers.HttpServer
162 } 165 }
163 else 166 else
164 { 167 {
165 m_log.ErrorFormat("[ASYNC REQUEST]: Request {0} {1} failed with exception {2}", verb, requestUrl, e); 168 m_log.ErrorFormat("[ASYNC REQUEST]: Request {0} {1} failed with status {2} and message {3}", verb, requestUrl, e.Status, e.Message);
166 } 169 }
167 } 170 }
168 catch (Exception e) 171 catch (Exception e)
@@ -182,7 +185,7 @@ namespace OpenSim.Framework.Servers.HttpServer
182 "[ASYNC REQUEST]: Request {0} {1} callback failed with exception {2}", verb, requestUrl, e); 185 "[ASYNC REQUEST]: Request {0} {1} callback failed with exception {2}", verb, requestUrl, e);
183 } 186 }
184 187
185 }, null); 188 }, null);
186 } 189 }
187 } 190 }
188} 191}