* Sanity check in DeserializeLLSDXml() to return an empty LLSD block instead of throwing an exception

* Removing redundant code from OpenMetaverse.Utilities
* Using System.Diagnostics.StopWatch instead of Environment.TickCount for rate limiting, and speeding up packet sending from 75ms gaps to 10ms (might be slightly too fast, but it works for me)
* Cleaning up the logic a big in RequestAllSimParcels()
* Try/catch block in GridProxy around packet delegates

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2371 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-12-05 01:34:24 +00:00
parent d816950d40
commit 4b1f441574
7 changed files with 40 additions and 371 deletions

View File

@@ -71,13 +71,20 @@ namespace OpenMetaverse.StructuredData
/// <returns></returns>
public static OSD DeserializeLLSDXml(XmlTextReader xmlData)
{
xmlData.Read();
SkipWhitespace(xmlData);
try
{
xmlData.Read();
SkipWhitespace(xmlData);
xmlData.Read();
OSD ret = ParseLLSDXmlElement(xmlData);
xmlData.Read();
OSD ret = ParseLLSDXmlElement(xmlData);
return ret;
return ret;
}
catch
{
return new OSD();
}
}
/// <summary>