Mantis #2489
Thank you, Diva, for a patch that helps keep the list of sims to index clean by allowing sims to deregister.0.6.0-stable
parent
7beeaf51f8
commit
0c6db79a8e
|
@ -94,8 +94,6 @@ namespace OpenSim.Region.DataSnapshot
|
|||
|
||||
#region IRegionModule
|
||||
|
||||
public void Close() {}
|
||||
|
||||
public void Initialise(Scene scene, IConfigSource config)
|
||||
{
|
||||
if (!m_configLoaded) {
|
||||
|
@ -162,7 +160,7 @@ namespace OpenSim.Region.DataSnapshot
|
|||
MakeEverythingStale();
|
||||
|
||||
if (m_dataServices != "" && m_dataServices != "noservices")
|
||||
NotifyDataServices(m_dataServices);
|
||||
NotifyDataServices(m_dataServices, "online");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,6 +203,14 @@ namespace OpenSim.Region.DataSnapshot
|
|||
}
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
if (m_dataServices != "" && m_dataServices != "noservices")
|
||||
NotifyDataServices(m_dataServices, "offline");
|
||||
|
||||
}
|
||||
|
||||
|
||||
public bool IsSharedModule
|
||||
{
|
||||
get { return true; }
|
||||
|
@ -313,7 +319,7 @@ namespace OpenSim.Region.DataSnapshot
|
|||
#endregion
|
||||
|
||||
#region External data services
|
||||
private void NotifyDataServices(string servicesStr)
|
||||
private void NotifyDataServices(string servicesStr, string serviceName)
|
||||
{
|
||||
Stream reply = null;
|
||||
string delimStr = ";";
|
||||
|
@ -325,6 +331,7 @@ namespace OpenSim.Region.DataSnapshot
|
|||
{
|
||||
string url = services[i].Trim();
|
||||
RestClient cli = new RestClient(url);
|
||||
cli.AddQueryParameter("service", serviceName);
|
||||
cli.AddQueryParameter("host", m_hostname);
|
||||
cli.AddQueryParameter("port", m_listener_port);
|
||||
cli.RequestMethod = "GET";
|
||||
|
|
Loading…
Reference in New Issue