mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user