* Changed various modules to not initialize timers unless the module is initialized. Ideally, the timers would not initialize unless the module was actually enabled, but Melanie's work on configuring module loading from a config file should make that unnecessary

* Wrapped the Bitmap class used to generate the world map tile in a using statement to dispose of it after the JPEG2000 data is created
This commit is contained in:
John Hurliman
2009-10-23 14:22:21 -07:00
parent 52a4534f7f
commit 2c34619aea
7 changed files with 41 additions and 31 deletions

View File

@@ -52,10 +52,10 @@ namespace OpenSim.Client.MXP
private IConfigSource m_config;
private int m_port = 1253;
private Timer m_ticker;
private readonly Dictionary<UUID, Scene> m_scenes = new Dictionary<UUID, Scene>();
private readonly Timer m_ticker = new Timer(100);
private bool m_shutdown = false;
private bool m_shutdown;
public void Initialise(Scene scene, IConfigSource source)
{
@@ -78,6 +78,7 @@ namespace OpenSim.Client.MXP
m_server = new MXPPacketServer(m_port, m_scenes,m_config.Configs["StandAlone"].GetBoolean("accounts_authenticate",true));
m_ticker = new Timer(100);
m_ticker.AutoReset = false;
m_ticker.Elapsed += ticker_Elapsed;