This does NOT address the issue in mantis #3940, but it may avoid the exception reported there by WiLLuMPJuH Huisman pertaining to TeleportFailedPacket.

trunk
diva 2009-07-27 19:20:48 +00:00
parent d21da7aa2b
commit 5ca02f0a08
1 changed files with 1 additions and 0 deletions

View File

@ -1750,6 +1750,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
TeleportFailedPacket tpFailed = (TeleportFailedPacket)PacketPool.Instance.GetPacket(PacketType.TeleportFailed); TeleportFailedPacket tpFailed = (TeleportFailedPacket)PacketPool.Instance.GetPacket(PacketType.TeleportFailed);
tpFailed.Info.AgentID = AgentId; tpFailed.Info.AgentID = AgentId;
tpFailed.Info.Reason = Utils.StringToBytes(reason); tpFailed.Info.Reason = Utils.StringToBytes(reason);
tpFailed.AlertInfo = new TeleportFailedPacket.AlertInfoBlock[0];
// Hack to get this out immediately and skip throttles // Hack to get this out immediately and skip throttles
OutPacket(tpFailed, ThrottleOutPacketType.Unknown); OutPacket(tpFailed, ThrottleOutPacketType.Unknown);