move datasnapshot notification to when region is actually loaded
parent
9e4bf3439c
commit
e326792aa3
|
@ -164,19 +164,6 @@ namespace OpenSim.Region.DataSnapshot
|
||||||
|
|
||||||
m_log.DebugFormat("[DATASNAPSHOT]: Module added to Scene {0}.", scene.RegionInfo.RegionName);
|
m_log.DebugFormat("[DATASNAPSHOT]: Module added to Scene {0}.", scene.RegionInfo.RegionName);
|
||||||
|
|
||||||
if (!m_servicesNotified)
|
|
||||||
{
|
|
||||||
m_hostname = scene.RegionInfo.ExternalHostName;
|
|
||||||
m_snapStore = new SnapshotStore(m_snapsDir, m_gridinfo, m_listener_port, m_hostname);
|
|
||||||
|
|
||||||
//Hand it the first scene, assuming that all scenes have the same BaseHTTPServer
|
|
||||||
new DataRequestHandler(scene, this);
|
|
||||||
|
|
||||||
if (m_dataServices != "" && m_dataServices != "noservices")
|
|
||||||
NotifyDataServices(m_dataServices, "online");
|
|
||||||
|
|
||||||
m_servicesNotified = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_scenes.Add(scene);
|
m_scenes.Add(scene);
|
||||||
m_snapStore.AddScene(scene);
|
m_snapStore.AddScene(scene);
|
||||||
|
@ -248,6 +235,20 @@ namespace OpenSim.Region.DataSnapshot
|
||||||
|
|
||||||
m_log.DebugFormat("[DATASNAPSHOT]: Marking scene {0} as stale.", scene.RegionInfo.RegionName);
|
m_log.DebugFormat("[DATASNAPSHOT]: Marking scene {0} as stale.", scene.RegionInfo.RegionName);
|
||||||
m_snapStore.ForceSceneStale(scene);
|
m_snapStore.ForceSceneStale(scene);
|
||||||
|
|
||||||
|
if (!m_servicesNotified)
|
||||||
|
{
|
||||||
|
m_hostname = scene.RegionInfo.ExternalHostName;
|
||||||
|
m_snapStore = new SnapshotStore(m_snapsDir, m_gridinfo, m_listener_port, m_hostname);
|
||||||
|
|
||||||
|
//Hand it the first scene, assuming that all scenes have the same BaseHTTPServer
|
||||||
|
new DataRequestHandler(scene, this);
|
||||||
|
|
||||||
|
if (m_dataServices != "" && m_dataServices != "noservices")
|
||||||
|
NotifyDataServices(m_dataServices, "online");
|
||||||
|
|
||||||
|
m_servicesNotified = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close()
|
public void Close()
|
||||||
|
|
Loading…
Reference in New Issue