diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/RestClient.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs index de34250..ce36fbf 100644 --- a/OpenSim/Framework/Communications/RestClient.cs +++ b/OpenSim/Framework/Communications/RestClient.cs | |||
@@ -326,6 +326,9 @@ namespace OpenSim.Framework.Communications | |||
326 | m_log.Debug(e.ToString()); | 326 | m_log.Debug(e.ToString()); |
327 | } | 327 | } |
328 | 328 | ||
329 | if (_response != null) | ||
330 | _response.Close(); | ||
331 | |||
329 | return null; | 332 | return null; |
330 | } | 333 | } |
331 | 334 | ||
@@ -390,6 +393,9 @@ namespace OpenSim.Framework.Communications | |||
390 | 393 | ||
391 | _response = (HttpWebResponse) _request.GetResponse(); | 394 | _response = (HttpWebResponse) _request.GetResponse(); |
392 | 395 | ||
396 | if (_response != null) | ||
397 | _response.Close(); | ||
398 | |||
393 | // IAsyncResult responseAsyncResult = _request.BeginGetResponse(new AsyncCallback(ResponseIsReadyDelegate), _request); | 399 | // IAsyncResult responseAsyncResult = _request.BeginGetResponse(new AsyncCallback(ResponseIsReadyDelegate), _request); |
394 | 400 | ||
395 | // TODO! Implement timeout, without killing the server | 401 | // TODO! Implement timeout, without killing the server |