Fix parameters hiding fields

This commit is contained in:
Cinder Roxley
2024-07-01 13:25:54 -05:00
parent 810679940f
commit 856d59e33d
3 changed files with 7 additions and 7 deletions

View File

@@ -301,12 +301,12 @@ namespace GridProxy
}
}
private Packet callDelegates(Dictionary<PacketType, List<PacketDelegate>> delegates, Packet packet, IPEndPoint remoteEndPoint)
private Packet callDelegates(Dictionary<PacketType, List<PacketDelegate>> delegates, Packet packet, IPEndPoint endpoint)
{
PacketType origType = packet.Type;
foreach (PacketDelegate del in delegates[origType])
{
try { packet = del(packet, remoteEndPoint); }
try { packet = del(packet, endpoint); }
catch (Exception ex) { OpenMetaverse.Logger.Log("Error in packet delegate", Helpers.LogLevel.Warning, ex); }
// FIXME: how should we handle the packet type changing?