Load new ini after writing to ensure proper settings

integration
BlueWall 2012-04-13 20:12:27 -04:00
parent a57ec18fb5
commit 30fff0e78e
1 changed files with 4 additions and 3 deletions

View File

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