Fixes the issue of hung archives. Problem was with SceneObjectSerializer.

Also fixes a buglet in scene load xml command, where it was given the wrong argument index for filename.
This commit is contained in:
Diva Canto
2011-01-08 15:49:51 -08:00
parent a1c5de0f94
commit eab0951a59
2 changed files with 13 additions and 1 deletions

View File

@@ -1441,6 +1441,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
{
TaskInventoryDictionary tinv = new TaskInventoryDictionary();
if (reader.IsEmptyElement)
{
reader.Read();
return tinv;
}
reader.ReadStartElement(name, String.Empty);
while (reader.Name == "TaskInventoryItem")
@@ -1474,6 +1480,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
{
PrimitiveBaseShape shape = new PrimitiveBaseShape();
if (reader.IsEmptyElement)
{
reader.Read();
return shape;
}
reader.ReadStartElement(name, String.Empty); // Shape
string nodeName = string.Empty;