do not send DisableSimulator on teleport if agent is already returning
parent
6ae7341e42
commit
31873485d9
|
@ -1112,7 +1112,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
// This sleep can be increased if necessary. However, whilst it's active,
|
// This sleep can be increased if necessary. However, whilst it's active,
|
||||||
// an agent cannot teleport back to this region if it has teleported away.
|
// an agent cannot teleport back to this region if it has teleported away.
|
||||||
Thread.Sleep(2000);
|
Thread.Sleep(2000);
|
||||||
if (m_eqModule != null)
|
if (m_eqModule != null && !sp.DoNotCloseAfterTeleport)
|
||||||
m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
|
m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(500);
|
||||||
sp.Scene.CloseAgent(sp.UUID, false);
|
sp.Scene.CloseAgent(sp.UUID, false);
|
||||||
|
@ -1260,7 +1260,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||||
// IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS.
|
// IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS.
|
||||||
|
|
||||||
Thread.Sleep(14000);
|
Thread.Sleep(14000);
|
||||||
if (m_eqModule != null)
|
if (m_eqModule != null && !sp.DoNotCloseAfterTeleport)
|
||||||
m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
|
m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue