diff options
author | UbitUmarov | 2016-08-01 01:05:31 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-01 01:05:31 +0100 |
commit | 5576a100cee24ffaed39972eeef46c0e04ec7305 (patch) | |
tree | 322b621a3d9ebfbfc791b3ca2401078e5081913d /OpenSim/Region/CoreModules | |
parent | Merge branch 'master' into httptests (diff) | |
parent | replace DateTime.Now by utcNow in another place (diff) | |
download | opensim-SC-5576a100cee24ffaed39972eeef46c0e04ec7305.zip opensim-SC-5576a100cee24ffaed39972eeef46c0e04ec7305.tar.gz opensim-SC-5576a100cee24ffaed39972eeef46c0e04ec7305.tar.bz2 opensim-SC-5576a100cee24ffaed39972eeef46c0e04ec7305.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 980d3cc..58f3dde 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -136,7 +136,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
136 | { | 136 | { |
137 | if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil)) | 137 | if (m_idCache.TryGetValue(pRegionHandle, out m_banUntil)) |
138 | { | 138 | { |
139 | if (DateTime.Now < m_banUntil) | 139 | if (DateTime.UtcNow < m_banUntil) |
140 | { | 140 | { |
141 | ret = true; | 141 | ret = true; |
142 | } | 142 | } |
@@ -157,7 +157,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
157 | m_idCache = new ExpiringCache<ulong, DateTime>(); | 157 | m_idCache = new ExpiringCache<ulong, DateTime>(); |
158 | m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime)); | 158 | m_bannedRegions.Add(pAgentID, m_idCache, TimeSpan.FromSeconds(newTime)); |
159 | } | 159 | } |
160 | m_idCache.Add(pRegionHandle, DateTime.Now + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime)); | 160 | m_idCache.Add(pRegionHandle, DateTime.UtcNow + TimeSpan.FromSeconds(extendTime), TimeSpan.FromSeconds(extendTime)); |
161 | } | 161 | } |
162 | 162 | ||
163 | // Remove the agent from the region's banned list | 163 | // Remove the agent from the region's banned list |
@@ -2125,7 +2125,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
2125 | psh |= (ulong)pY & 0xffffff00ul; | 2125 | psh |= (ulong)pY & 0xffffff00ul; |
2126 | 2126 | ||
2127 | lock (m_notFoundLocations) | 2127 | lock (m_notFoundLocations) |
2128 | m_notFoundLocations[psh] = DateTime.Now + TimeSpan.FromSeconds(30);; | 2128 | m_notFoundLocations[psh] = DateTime.UtcNow + TimeSpan.FromSeconds(30); |
2129 | } | 2129 | } |
2130 | // Test to see of this point is in any of the 'not found' areas. | 2130 | // Test to see of this point is in any of the 'not found' areas. |
2131 | // Return 'true' if the point is found inside the 'not found' areas. | 2131 | // Return 'true' if the point is found inside the 'not found' areas. |
@@ -2146,7 +2146,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
2146 | return false; | 2146 | return false; |
2147 | } | 2147 | } |
2148 | } | 2148 | } |
2149 | 2149 | ||
2150 | private void DoExpiration() | 2150 | private void DoExpiration() |
2151 | { | 2151 | { |
2152 | List<ulong> m_toRemove = new List<ulong>();; | 2152 | List<ulong> m_toRemove = new List<ulong>();; |