Close was being called to early on the Memory stream.

This commit is contained in:
Diva Canto
2009-10-03 16:27:55 -07:00
parent b75b887798
commit b6920267f0
3 changed files with 7 additions and 3 deletions

View File

@@ -82,7 +82,6 @@ namespace OpenSim.Framework.Servers.HttpServer
serializer.Serialize(writer, obj);
writer.Flush();
}
buffer.Close();
int length = (int) buffer.Length;
request.ContentLength = length;
@@ -109,13 +108,16 @@ namespace OpenSim.Framework.Servers.HttpServer
}
finally
{
buffer.Close();
respStream.Close();
response.Close();
}
action(deserial);
}, null);
}, null);
return;
}