mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
Check if remote simulator is up before attempting teleport. Teleport to a remote region should now fail gracefully if remote simulator is down.
This commit is contained in:
@@ -890,11 +890,11 @@ namespace OpenSim.Region.ClientStack
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public void SendTeleportFailed()
|
||||
public void SendTeleportFailed(string reason)
|
||||
{
|
||||
TeleportFailedPacket tpFailed = (TeleportFailedPacket)PacketPool.Instance.GetPacket(PacketType.TeleportFailed);
|
||||
tpFailed.Info.AgentID = AgentId;
|
||||
tpFailed.Info.Reason = Helpers.StringToField("unknown failure of teleport");
|
||||
tpFailed.Info.Reason = Helpers.StringToField(reason);
|
||||
OutPacket(tpFailed, ThrottleOutPacketType.Task);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user