From 63239402ae206edf51476eff08f8db24265dbe22 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 18 Sep 2019 18:43:45 +0100 Subject: fix wrong lludp message usage --- .../Region/ClientStack/Linden/UDP/LLClientView.cs | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 07d96f0..fe05a9e 100755 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -11297,10 +11297,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP if (lma == null) { // Really doesn't exist - TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); - tpCancel.Info.SessionID = tpReq.Info.SessionID; - tpCancel.Info.AgentID = tpReq.Info.AgentID; - OutPacket(tpCancel, ThrottleOutPacketType.Task); + m_log.WarnFormat("[llClient]: landmark asset {0} not found",lmid.ToString()); + SendTeleportFailed("Could not find the landmark asset data"); } } @@ -11311,10 +11309,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP catch (NullReferenceException) { // asset not found generates null ref inside the assetlandmark constructor. - TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); - tpCancel.Info.SessionID = tpReq.Info.SessionID; - tpCancel.Info.AgentID = tpReq.Info.AgentID; - OutPacket(tpCancel, ThrottleOutPacketType.Task); + SendTeleportFailed("Could not find the landmark asset data"); return true; } } @@ -11337,11 +11332,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP else { //no event handler so cancel request - TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); - tpCancel.Info.AgentID = tpReq.Info.AgentID; - tpCancel.Info.SessionID = tpReq.Info.SessionID; - OutPacket(tpCancel, ThrottleOutPacketType.Task); - + SendTeleportFailed("Could not find the landmark asset data"); } return true; } @@ -11402,10 +11393,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP else { //no event handler so cancel request - TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); - tpCancel.Info.SessionID = tpLocReq.AgentData.SessionID; - tpCancel.Info.AgentID = tpLocReq.AgentData.AgentID; - OutPacket(tpCancel, ThrottleOutPacketType.Task); + SendTeleportFailed("Could not process the teleport"); } return true; } -- cgit v1.1