diff options
Diffstat (limited to 'OpenSim/Grid/GridServer/GridXmlRpcModule.cs')
-rw-r--r-- | OpenSim/Grid/GridServer/GridXmlRpcModule.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Grid/GridServer/GridXmlRpcModule.cs b/OpenSim/Grid/GridServer/GridXmlRpcModule.cs index 8998b55..874b57f 100644 --- a/OpenSim/Grid/GridServer/GridXmlRpcModule.cs +++ b/OpenSim/Grid/GridServer/GridXmlRpcModule.cs | |||
@@ -50,6 +50,7 @@ namespace OpenSim.Grid.GridServer | |||
50 | 50 | ||
51 | protected GridConfig m_config; | 51 | protected GridConfig m_config; |
52 | 52 | ||
53 | protected IGridMessagingModule m_messagingServerMapper; | ||
53 | /// <value> | 54 | /// <value> |
54 | /// Used to notify old regions as to which OpenSim version to upgrade to | 55 | /// Used to notify old regions as to which OpenSim version to upgrade to |
55 | /// </value> | 56 | /// </value> |
@@ -78,7 +79,11 @@ namespace OpenSim.Grid.GridServer | |||
78 | 79 | ||
79 | public void PostInitialise() | 80 | public void PostInitialise() |
80 | { | 81 | { |
81 | 82 | IGridMessagingModule messagingModule; | |
83 | if (m_gridCore.TryGet<IGridMessagingModule>(out messagingModule)) | ||
84 | { | ||
85 | m_messagingServerMapper = messagingModule; | ||
86 | } | ||
82 | } | 87 | } |
83 | 88 | ||
84 | public void RegisterHandlers() | 89 | public void RegisterHandlers() |
@@ -391,10 +396,12 @@ namespace OpenSim.Grid.GridServer | |||
391 | 396 | ||
392 | responseData["messageserver_count"] = 0; | 397 | responseData["messageserver_count"] = 0; |
393 | 398 | ||
394 | IGridMessagingModule messagingModule; | 399 | // IGridMessagingModule messagingModule; |
395 | if (m_gridCore.TryGet<IGridMessagingModule>(out messagingModule)) | 400 | // if (m_gridCore.TryGet<IGridMessagingModule>(out messagingModule)) |
401 | //{ | ||
402 | if(m_messagingServerMapper != null) | ||
396 | { | 403 | { |
397 | List<MessageServerInfo> messageServers = messagingModule.MessageServers; | 404 | List<MessageServerInfo> messageServers = m_messagingServerMapper.MessageServers; |
398 | responseData["messageserver_count"] = messageServers.Count; | 405 | responseData["messageserver_count"] = messageServers.Count; |
399 | 406 | ||
400 | for (int i = 0; i < messageServers.Count; i++) | 407 | for (int i = 0; i < messageServers.Count; i++) |