From c769d93206457d2aff4eda6073bd8629872e242d Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 15 Feb 2008 12:50:10 +0000 Subject: * Temporary measure of deleting the Mono addin cache dir of addin-db-000/ on every startup to avoid cache corruption problems --- OpenSim/Region/Application/OpenSimMain.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 3df4c8c..1e5fcfb 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -123,6 +123,13 @@ namespace OpenSim { IConfig startupConfig = configSource.Configs["Startup"]; + // The Mono addin manager (in Mono.Addins.dll version 0.2.0.0) occasionally seems to corrupt its addin cache + // Hence, as a temporary solution we'll remove it before each startup + if (Directory.Exists("addin-db-000")) + { + Directory.Delete("addin-db-000", true); + } + AddinManager.Initialize("."); AddinManager.Registry.Update(null); -- cgit v1.1