aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMW2008-02-20 11:10:23 +0000
committerMW2008-02-20 11:10:23 +0000
commit37b989a8c6514cbfcfff6fbba3271ac592f372c2 (patch)
tree2aa617996e244f60589e0de70055b21126720d55
parent* just added a readonly and a comment (diff)
downloadopensim-SC-37b989a8c6514cbfcfff6fbba3271ac592f372c2.zip
opensim-SC-37b989a8c6514cbfcfff6fbba3271ac592f372c2.tar.gz
opensim-SC-37b989a8c6514cbfcfff6fbba3271ac592f372c2.tar.bz2
opensim-SC-37b989a8c6514cbfcfff6fbba3271ac592f372c2.tar.xz
some changes to the initialising of AgentAssetTransactionModule to see if they help with the xfer/grey avatar problems.
-rw-r--r--OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs32
1 files changed, 23 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
index f29c20e..99d6db1 100644
--- a/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
+++ b/OpenSim/Region/Environment/Modules/AgentAssetTransactionModule.cs
@@ -45,28 +45,42 @@ namespace OpenSim.Region.Environment.Modules
45 45
46 private AgentAssetTransactionsManager m_transactionManager; 46 private AgentAssetTransactionsManager m_transactionManager;
47 47
48 public AgentAssetTransactionModule()
49 {
50 // System.Console.WriteLine("creating AgentAssetTransactionModule");
51 }
52
48 public void Initialise(Scene scene, IConfigSource config) 53 public void Initialise(Scene scene, IConfigSource config)
49 { 54 {
50 if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID)) 55 if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID))
51 { 56 {
57 // System.Console.WriteLine("initialising AgentAssetTransactionModule");
52 RegisteredScenes.Add(scene.RegionInfo.RegionID, scene); 58 RegisteredScenes.Add(scene.RegionInfo.RegionID, scene);
53 scene.RegisterModuleInterface<IAgentAssetTransactions>(this); 59 scene.RegisterModuleInterface<IAgentAssetTransactions>(this);
54 60
55 scene.EventManager.OnNewClient += NewClient; 61 scene.EventManager.OnNewClient += NewClient;
56
57 try
58 {
59 m_dumpAssetsToFile = config.Configs["StandAlone"].GetBoolean("dump_assets_to_file", false);
60 }
61 catch (Exception)
62 {
63 }
64 } 62 }
65 63
66 if (m_scene == null) 64 if (m_scene == null)
67 { 65 {
68 m_scene = scene; 66 m_scene = scene;
69 m_transactionManager = new AgentAssetTransactionsManager(m_scene, m_dumpAssetsToFile); 67 if (config.Configs["StandAlone"] != null)
68 {
69 try
70 {
71 m_dumpAssetsToFile = config.Configs["StandAlone"].GetBoolean("dump_assets_to_file", false);
72 m_transactionManager = new AgentAssetTransactionsManager(m_scene, m_dumpAssetsToFile);
73 }
74 catch (Exception)
75 {
76 m_transactionManager = new AgentAssetTransactionsManager(m_scene, false);
77 }
78 }
79 else
80 {
81 m_transactionManager = new AgentAssetTransactionsManager(m_scene, false);
82 }
83
70 } 84 }
71 } 85 }
72 86