mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Lock timers when Calling Start() and Stop() when the Thread Context is murky. This affects Mono only.
This commit is contained in:
@@ -81,7 +81,8 @@ namespace OpenSim.Client.MXP
|
||||
m_ticker.AutoReset = false;
|
||||
m_ticker.Elapsed += ticker_Elapsed;
|
||||
|
||||
m_ticker.Start();
|
||||
lock (m_ticker)
|
||||
m_ticker.Start();
|
||||
|
||||
m_log.Info("[MXP ClientStack] MXP Enabled and Listening");
|
||||
}
|
||||
@@ -99,13 +100,17 @@ namespace OpenSim.Client.MXP
|
||||
}
|
||||
|
||||
if (!m_shutdown)
|
||||
m_ticker.Start();
|
||||
{
|
||||
lock (m_ticker)
|
||||
m_ticker.Start();
|
||||
}
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
m_shutdown = true;
|
||||
m_ticker.Stop();
|
||||
lock (m_ticker)
|
||||
m_ticker.Stop();
|
||||
}
|
||||
|
||||
public string Name
|
||||
|
||||
Reference in New Issue
Block a user