mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
change OutPacket drop condition
This commit is contained in:
@@ -12946,12 +12946,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
/// provide your own method.</param>
|
||||
protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method)
|
||||
{
|
||||
if(!IsActive)
|
||||
if(!m_udpClient.IsConnected)
|
||||
{
|
||||
PacketPool.Instance.ReturnPacket(packet);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_outPacketsToDrop != null)
|
||||
{
|
||||
if (m_outPacketsToDrop.Contains(packet.Type.ToString()))
|
||||
{
|
||||
PacketPool.Instance.ReturnPacket(packet);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (DebugPacketLevel > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user