aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 49a8e64..9e72a98 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -1673,16 +1673,25 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1673 Hashtable responseData = (Hashtable)response.Value; 1673 Hashtable responseData = (Hashtable)response.Value;
1674 Hashtable requestData = (Hashtable)request.Params[0]; 1674 Hashtable requestData = (Hashtable)request.Params[0];
1675 1675
1676 int flags = 0;
1677 string text = String.Empty;
1678 int health = 0;
1676 responseData["success"] = true; 1679 responseData["success"] = true;
1677 1680
1678 CheckRegionParams(requestData, responseData); 1681 CheckRegionParams(requestData, responseData);
1679 1682
1680 Scene scene = null; 1683 Scene scene = null;
1681 GetSceneFromRegionParams(requestData, responseData, out scene); 1684 try
1685 {
1686 GetSceneFromRegionParams(requestData, responseData, out scene);
1687 health = scene.GetHealth(out flags, out text);
1688 }
1689 catch (Exception e)
1690 {
1691 responseData["error"] = null;
1692 }
1682 1693
1683 int flags; 1694 responseData["success"] = true;
1684 string text;
1685 int health = scene.GetHealth(out flags, out text);
1686 responseData["health"] = health; 1695 responseData["health"] = health;
1687 responseData["flags"] = flags; 1696 responseData["flags"] = flags;
1688 responseData["message"] = text; 1697 responseData["message"] = text;