From 37b989a8c6514cbfcfff6fbba3271ac592f372c2 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 20 Feb 2008 11:10:23 +0000 Subject: some changes to the initialising of AgentAssetTransactionModule to see if they help with the xfer/grey avatar problems. --- .../Modules/AgentAssetTransactionModule.cs | 32 ++++++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') 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 private AgentAssetTransactionsManager m_transactionManager; + public AgentAssetTransactionModule() + { + // System.Console.WriteLine("creating AgentAssetTransactionModule"); + } + public void Initialise(Scene scene, IConfigSource config) { if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID)) { + // System.Console.WriteLine("initialising AgentAssetTransactionModule"); RegisteredScenes.Add(scene.RegionInfo.RegionID, scene); scene.RegisterModuleInterface(this); scene.EventManager.OnNewClient += NewClient; - - try - { - m_dumpAssetsToFile = config.Configs["StandAlone"].GetBoolean("dump_assets_to_file", false); - } - catch (Exception) - { - } } if (m_scene == null) { m_scene = scene; - m_transactionManager = new AgentAssetTransactionsManager(m_scene, m_dumpAssetsToFile); + if (config.Configs["StandAlone"] != null) + { + try + { + m_dumpAssetsToFile = config.Configs["StandAlone"].GetBoolean("dump_assets_to_file", false); + m_transactionManager = new AgentAssetTransactionsManager(m_scene, m_dumpAssetsToFile); + } + catch (Exception) + { + m_transactionManager = new AgentAssetTransactionsManager(m_scene, false); + } + } + else + { + m_transactionManager = new AgentAssetTransactionsManager(m_scene, false); + } + } } -- cgit v1.1