From 30fff0e78e12ff5db728f2733cb585b011033c32 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Fri, 13 Apr 2012 20:12:27 -0400 Subject: [PATCH] Load new ini after writing to ensure proper settings --- .../Services/IntegrationService/IntegrationServiceBase.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs index 1bdbafa08d..f5010c73f3 100644 --- a/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs +++ b/OpenSim/Services/IntegrationService/IntegrationServiceBase.cs @@ -48,7 +48,7 @@ namespace OpenSim.Services.IntegrationService { void Init(IConfigSource PluginConfig, IHttpServer server, ServiceBase service); void Unload(); - string Name{ get; } + string Name { get; } string ConfigName { get; } string DefaultConfig { get; } } @@ -252,7 +252,7 @@ namespace OpenSim.Services.IntegrationService IniConfigSource source = new IniConfigSource(); IConfig Init = source.AddConfig("DatabaseService"); Init.Set("StorageProvider",(string)DataService.GetString("StorageProvider")); - Init.Set("ConnectionString", (string)DataService.GetString("ConnectionString")); + Init.Set("ConnectionString", String.Format ("\"{0}\"",DataService.GetString("ConnectionString"))); PlugConfig = Ux.LoadInitialConfig(plugin.DefaultConfig); @@ -261,7 +261,8 @@ namespace OpenSim.Services.IntegrationService source.Save(Path.Combine(m_IntegrationConfigLoc, plugin.ConfigName)); - PlugConfig = source; + PlugConfig = Ux.GetConfigSource(m_IntegrationConfigLoc, plugin.ConfigName); + // PlugConfig = source; } m_log.InfoFormat("[INTEGRATION SERVICE]: ****** In Loading Plugin {0}", plugin.Name);