aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs b/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
index 6c8d7cf..a459f1b 100644
--- a/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
+++ b/OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs
@@ -82,7 +82,6 @@ namespace OpenSim.Framework.Servers.HttpServer
82 serializer.Serialize(writer, obj); 82 serializer.Serialize(writer, obj);
83 writer.Flush(); 83 writer.Flush();
84 } 84 }
85 buffer.Close();
86 85
87 int length = (int) buffer.Length; 86 int length = (int) buffer.Length;
88 request.ContentLength = length; 87 request.ContentLength = length;
@@ -109,13 +108,16 @@ namespace OpenSim.Framework.Servers.HttpServer
109 } 108 }
110 finally 109 finally
111 { 110 {
111 buffer.Close();
112 respStream.Close(); 112 respStream.Close();
113 response.Close(); 113 response.Close();
114 } 114 }
115 115
116 action(deserial); 116 action(deserial);
117
117 }, null); 118 }, null);
118 }, null); 119 }, null);
120
119 121
120 return; 122 return;
121 } 123 }