mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +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;
|
||||
}
|
||||
|
||||
@@ -2177,13 +2177,16 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
|
||||
watchDog.Interval = interval;
|
||||
watchDog.AutoReset = false;
|
||||
watchDog.Enabled = true;
|
||||
watchDog.Start();
|
||||
lock (watchDog)
|
||||
watchDog.Start();
|
||||
|
||||
}
|
||||
|
||||
internal void stopWD()
|
||||
{
|
||||
Rest.Log.DebugFormat("{0} Reset watchdog", MsgId);
|
||||
watchDog.Stop();
|
||||
lock (watchDog)
|
||||
watchDog.Stop();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user