* More OutPacket refactors.

* Added back a sleep to the kick routine so users get a 'you have been logged off message' when they get kicked from the simulator for various reasons (like 'the simulator is going down')
This commit is contained in:
Teravus Ovares
2008-05-10 13:11:09 +00:00
parent b67f88a3a2
commit 1ba51dd2fd
5 changed files with 29 additions and 157 deletions

View File

@@ -436,6 +436,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
kupack.TargetBlock.TargetPort = (ushort)0;
kupack.UserInfo.Reason = Helpers.StringToField(message);
OutPacket(kupack, ThrottleOutPacketType.Task);
// You must sleep here or users get no message!
Thread.Sleep(500);
}
}
@@ -2244,6 +2246,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
im.Header.Zerocoded = true;
OutPacket(im, ThrottleOutPacketType.Texture);
}
public void SendShutdownConnectionNotice()
{
OutPacket(PacketPool.Instance.GetPacket(PacketType.DisableSimulator), ThrottleOutPacketType.Unknown);
}
public void SendSimStats(Packet pack)
{
pack.Header.Reliable = false;
OutPacket(pack, ThrottleOutPacketType.Task);
}
#endregion
#region Estate Data Sending Methods