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:
@@ -384,7 +384,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
System.Timers.Timer shutdownTimer = new System.Timers.Timer(timeout); // Wait before firing
|
||||
shutdownTimer.AutoReset = false;
|
||||
shutdownTimer.Elapsed += new ElapsedEventHandler(shutdownTimer_Elapsed);
|
||||
shutdownTimer.Start();
|
||||
lock (shutdownTimer)
|
||||
{
|
||||
shutdownTimer.Start();
|
||||
}
|
||||
|
||||
responseData["success"] = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user