* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user