Refactor. Instantiate sim status handlers in opensim base, not in a plugin

slimupdates
Melanie 2010-01-11 05:12:01 +00:00
parent 15a11e9745
commit bfddd75ca8
2 changed files with 5 additions and 4 deletions

View File

@ -135,10 +135,6 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
protected virtual void InitialiseGridServices(LibraryRootFolder libraryRootFolder)
{
m_httpServer.AddStreamHandler(new OpenSim.SimStatusHandler());
m_httpServer.AddStreamHandler(new OpenSim.XSimStatusHandler(m_openSim));
if (m_openSim.userStatsURI != String.Empty)
m_httpServer.AddStreamHandler(new OpenSim.UXSimStatusHandler(m_openSim));
}
private void CreateGridInfoService()

View File

@ -148,6 +148,11 @@ namespace OpenSim
RegisterConsoleCommands();
MainServer.Instance.AddStreamHandler(new OpenSim.SimStatusHandler());
MainServer.Instance.AddStreamHandler(new OpenSim.XSimStatusHandler(this));
if (userStatsURI != String.Empty)
MainServer.Instance.AddStreamHandler(new OpenSim.UXSimStatusHandler(this));
base.StartupSpecific();
if (m_console is RemoteConsole)