change OutPacket drop condition
parent
8010413e64
commit
b887b7625e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue