diff options
author | Diva Canto | 2009-10-03 16:27:55 -0700 |
---|---|---|
committer | Diva Canto | 2009-10-03 16:27:55 -0700 |
commit | b6920267f0e286a78f792c844ff30021044d7e9b (patch) | |
tree | 395c98f953e03a20758c8dab88daca728a65e129 /OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs | |
parent | Fixed interface between the Messaging server and the grid server. (diff) | |
download | opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.zip opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.gz opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.bz2 opensim-SC_OLD-b6920267f0e286a78f792c844ff30021044d7e9b.tar.xz |
Close was being called to early on the Memory stream.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/AsynchronousRestObjectRequester.cs | 4 |
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 | } |