aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorHomer Horwitz2008-11-21 22:21:49 +0000
committerHomer Horwitz2008-11-21 22:21:49 +0000
commit0d2e5827c514efe1df89872c465ca99ee8a1cee2 (patch)
tree6094cb909a4284dd13179f4786d5cb132f173db5 /OpenSim/Region
parentRefactor: Scene.ExternalChecks -> Scene.Permissions. Also make all (diff)
downloadopensim-SC_OLD-0d2e5827c514efe1df89872c465ca99ee8a1cee2.zip
opensim-SC_OLD-0d2e5827c514efe1df89872c465ca99ee8a1cee2.tar.gz
opensim-SC_OLD-0d2e5827c514efe1df89872c465ca99ee8a1cee2.tar.bz2
opensim-SC_OLD-0d2e5827c514efe1df89872c465ca99ee8a1cee2.tar.xz
- No need to build a list of regions and then only the first one.
- I first did lock on m_scenes for that access, but as m_scenes (currently) is only changed in Initialise (and locked there), and PostInitialise is called after the calls to Initialise, there shouldn't be a need to lock here. - Trying out git-svn dcommit. Hope this works.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
index 4cdff70..89c8587 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
@@ -133,8 +133,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
133 133
134 public void PostInitialise() 134 public void PostInitialise()
135 { 135 {
136 List<Scene> scenes = new List<Scene>(m_scenes.Values); 136 if(m_scenes.Count > 0)
137 m_TransferModule = scenes[0].RequestModuleInterface<IMessageTransferModule>(); 137 {
138 m_TransferModule = m_initialScene.RequestModuleInterface<IMessageTransferModule>();
139 }
138 if (m_TransferModule == null) 140 if (m_TransferModule == null)
139 m_log.Error("[FRIENDS]: Unable to find a message transfer module, friendship offers will not work"); 141 m_log.Error("[FRIENDS]: Unable to find a message transfer module, friendship offers will not work");
140 } 142 }