aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden
diff options
context:
space:
mode:
authorUbitUmarov2019-09-18 18:43:45 +0100
committerUbitUmarov2019-09-18 18:43:45 +0100
commit63239402ae206edf51476eff08f8db24265dbe22 (patch)
treef404f2d948253d47ef9b40b5bafff5d3e2f0e554 /OpenSim/Region/ClientStack/Linden
parentavoid a null ref ( this should not be needed) (diff)
downloadopensim-SC-63239402ae206edf51476eff08f8db24265dbe22.zip
opensim-SC-63239402ae206edf51476eff08f8db24265dbe22.tar.gz
opensim-SC-63239402ae206edf51476eff08f8db24265dbe22.tar.bz2
opensim-SC-63239402ae206edf51476eff08f8db24265dbe22.tar.xz
fix wrong lludp message usage
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs22
1 files changed, 5 insertions, 17 deletions
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
11297 if (lma == null) 11297 if (lma == null)
11298 { 11298 {
11299 // Really doesn't exist 11299 // Really doesn't exist
11300 TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); 11300 m_log.WarnFormat("[llClient]: landmark asset {0} not found",lmid.ToString());
11301 tpCancel.Info.SessionID = tpReq.Info.SessionID; 11301 SendTeleportFailed("Could not find the landmark asset data");
11302 tpCancel.Info.AgentID = tpReq.Info.AgentID;
11303 OutPacket(tpCancel, ThrottleOutPacketType.Task);
11304 } 11302 }
11305 } 11303 }
11306 11304
@@ -11311,10 +11309,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11311 catch (NullReferenceException) 11309 catch (NullReferenceException)
11312 { 11310 {
11313 // asset not found generates null ref inside the assetlandmark constructor. 11311 // asset not found generates null ref inside the assetlandmark constructor.
11314 TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); 11312 SendTeleportFailed("Could not find the landmark asset data");
11315 tpCancel.Info.SessionID = tpReq.Info.SessionID;
11316 tpCancel.Info.AgentID = tpReq.Info.AgentID;
11317 OutPacket(tpCancel, ThrottleOutPacketType.Task);
11318 return true; 11313 return true;
11319 } 11314 }
11320 } 11315 }
@@ -11337,11 +11332,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11337 else 11332 else
11338 { 11333 {
11339 //no event handler so cancel request 11334 //no event handler so cancel request
11340 TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); 11335 SendTeleportFailed("Could not find the landmark asset data");
11341 tpCancel.Info.AgentID = tpReq.Info.AgentID;
11342 tpCancel.Info.SessionID = tpReq.Info.SessionID;
11343 OutPacket(tpCancel, ThrottleOutPacketType.Task);
11344
11345 } 11336 }
11346 return true; 11337 return true;
11347 } 11338 }
@@ -11402,10 +11393,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11402 else 11393 else
11403 { 11394 {
11404 //no event handler so cancel request 11395 //no event handler so cancel request
11405 TeleportCancelPacket tpCancel = (TeleportCancelPacket)PacketPool.Instance.GetPacket(PacketType.TeleportCancel); 11396 SendTeleportFailed("Could not process the teleport");
11406 tpCancel.Info.SessionID = tpLocReq.AgentData.SessionID;
11407 tpCancel.Info.AgentID = tpLocReq.AgentData.AgentID;
11408 OutPacket(tpCancel, ThrottleOutPacketType.Task);
11409 } 11397 }
11410 return true; 11398 return true;
11411 } 11399 }