diff --git a/OpenGrid.Config/GridConfigDb4o/DbGridConfig.cs b/OpenGrid.Config/GridConfigDb4o/DbGridConfig.cs index f3ad2cb3e1..10844675f0 100644 --- a/OpenGrid.Config/GridConfigDb4o/DbGridConfig.cs +++ b/OpenGrid.Config/GridConfigDb4o/DbGridConfig.cs @@ -84,9 +84,9 @@ namespace OpenGrid.Config.GridConfigDb4o LoadDefaults(); OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Writing out default settings to local database"); db.Set(this); + db.Close(); } } catch(Exception e) { - db.Close(); OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Config.cs:InitConfig() - Exception occured"); OpenSim.Framework.Console.MainConsole.Instance.WriteLine(e.ToString()); }