* 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

@@ -299,7 +299,8 @@ namespace GridProxy
PacketType origType = packet.Type;
foreach (PacketDelegate del in delegates[origType])
{
packet = del(packet, remoteEndPoint);
try { packet = del(packet, remoteEndPoint); }
catch (Exception ex) { Console.WriteLine("Error in packet delegate: " + ex.ToString()); }
// FIXME: how should we handle the packet type changing?
if (packet == null || packet.Type != origType) break;