diff options
author | Melanie | 2013-02-26 13:34:20 +0000 |
---|---|---|
committer | Melanie | 2013-02-26 13:34:20 +0000 |
commit | 54ee95dd8e6649723d92ac893e1699d34822cd80 (patch) | |
tree | d1d15e17c0a04bef247bfe8e6e0cffd3f8460ff1 /OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs | |
parent | Make sure state machine is reset if crossing is aborted (diff) | |
parent | BulletSim: tweeks to make avatar jump work better. (diff) | |
download | opensim-SC-54ee95dd8e6649723d92ac893e1699d34822cd80.zip opensim-SC-54ee95dd8e6649723d92ac893e1699d34822cd80.tar.gz opensim-SC-54ee95dd8e6649723d92ac893e1699d34822cd80.tar.bz2 opensim-SC-54ee95dd8e6649723d92ac893e1699d34822cd80.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs')
-rw-r--r-- | OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs b/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs index f789626..e7d38c2 100644 --- a/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs +++ b/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs | |||
@@ -393,7 +393,7 @@ namespace OpenSim.Groups | |||
393 | } | 393 | } |
394 | } | 394 | } |
395 | 395 | ||
396 | public bool AddGroupRole(UUID roleID, string description, string name, ulong powers, string title, BooleanDelegate d) | 396 | public bool AddGroupRole(UUID groupID, UUID roleID, string description, string name, ulong powers, string title, BooleanDelegate d) |
397 | { | 397 | { |
398 | if (d()) | 398 | if (d()) |
399 | { | 399 | { |
@@ -406,8 +406,15 @@ namespace OpenSim.Groups | |||
406 | role.Title = title; | 406 | role.Title = title; |
407 | 407 | ||
408 | lock (m_Cache) | 408 | lock (m_Cache) |
409 | { | ||
409 | m_Cache.AddOrUpdate("role-" + roleID.ToString(), role, GROUPS_CACHE_TIMEOUT); | 410 | m_Cache.AddOrUpdate("role-" + roleID.ToString(), role, GROUPS_CACHE_TIMEOUT); |
410 | 411 | ||
412 | // also remove this list | ||
413 | if (m_Cache.Contains("roles-" + groupID.ToString())) | ||
414 | m_Cache.Remove("roles-" + groupID.ToString()); | ||
415 | |||
416 | } | ||
417 | |||
411 | return true; | 418 | return true; |
412 | } | 419 | } |
413 | 420 | ||