* Lock timers when Calling Start() and Stop() when the Thread Context is murky. This affects Mono only.

This commit is contained in:
Teravus Ovares (Dan Olivares)
2009-09-09 16:20:19 -04:00
parent f0e2fd426b
commit c605509da3
8 changed files with 85 additions and 30 deletions

View File

@@ -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;
}