diff options
author | Melanie | 2012-03-14 11:33:51 +0000 |
---|---|---|
committer | Melanie | 2012-03-14 11:33:51 +0000 |
commit | c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d (patch) | |
tree | 4b2972bdee4a29c4ecfce11bee9f154c7cdd9873 /OpenSim/Region/CoreModules | |
parent | Implement llSetPrimitiveParams for physics shape and material. Add (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.zip opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.gz opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.bz2 opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 60a8f86..feab40e 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -305,6 +305,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
305 | return; | 305 | return; |
306 | } | 306 | } |
307 | 307 | ||
308 | if (IsInTransit(sp.UUID)) // Avie is already on the way. Caller shouldn't do this. | ||
309 | return; | ||
310 | |||
308 | m_log.DebugFormat( | 311 | m_log.DebugFormat( |
309 | "[ENTITY TRANSFER MODULE]: Request Teleport to {0} ({1}) {2}/{3}", | 312 | "[ENTITY TRANSFER MODULE]: Request Teleport to {0} ({1}) {2}/{3}", |
310 | reg.ServerURI, finalDestination.ServerURI, finalDestination.RegionName, position); | 313 | reg.ServerURI, finalDestination.ServerURI, finalDestination.RegionName, position); |
@@ -1825,6 +1828,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1825 | } | 1828 | } |
1826 | } | 1829 | } |
1827 | 1830 | ||
1831 | protected bool IsInTransit(UUID id) | ||
1832 | { | ||
1833 | lock (m_agentsInTransit) | ||
1834 | { | ||
1835 | if (m_agentsInTransit.Contains(id)) | ||
1836 | return true; | ||
1837 | } | ||
1838 | return false; | ||
1839 | } | ||
1840 | |||
1828 | protected bool ResetFromTransit(UUID id) | 1841 | protected bool ResetFromTransit(UUID id) |
1829 | { | 1842 | { |
1830 | lock (m_agentsInTransit) | 1843 | lock (m_agentsInTransit) |