mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
* Stop the DataSnapShot module trying to call home on shutdown even if it isn't enabled.
* Please let's check such patches carefully - we don't want info leaking out unless the user has requested it
This commit is contained in:
@@ -96,7 +96,8 @@ namespace OpenSim.Region.DataSnapshot
|
||||
|
||||
public void Initialise(Scene scene, IConfigSource config)
|
||||
{
|
||||
if (!m_configLoaded) {
|
||||
if (!m_configLoaded)
|
||||
{
|
||||
m_configLoaded = true;
|
||||
m_log.Info("[DATASNAPSHOT]: Loading configuration");
|
||||
//Read from the config for options
|
||||
@@ -111,10 +112,6 @@ namespace OpenSim.Region.DataSnapshot
|
||||
m_gridinfo.Add("userserverURL", config.Configs["Network"].GetString("user_server_url", "harbl"));
|
||||
m_gridinfo.Add("assetserverURL", config.Configs["Network"].GetString("asset_server_url", "harbl"));
|
||||
}
|
||||
else
|
||||
{
|
||||
//Non gridmode stuff
|
||||
}
|
||||
|
||||
m_gridinfo.Add("Name", config.Configs["DataSnapshot"].GetString("gridname", "harbl"));
|
||||
m_exposure_level = config.Configs["DataSnapshot"].GetString("data_exposure", m_exposure_level);
|
||||
@@ -205,9 +202,8 @@ namespace OpenSim.Region.DataSnapshot
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if (m_dataServices != "" && m_dataServices != "noservices")
|
||||
if (m_enabled && m_dataServices != "" && m_dataServices != "noservices")
|
||||
NotifyDataServices(m_dataServices, "offline");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user