Refactor. Instantiate sim status handlers in opensim base, not in a plugin
parent
15a11e9745
commit
bfddd75ca8
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue