Catch any exceptions exiting the top of the robust console, as we already do for the main simulator.

This prevents issues such as transient mono console problems from crashing the server.
0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-11-02 13:16:02 +00:00
parent 6bbf4fdc0f
commit f9e6e32ce2
1 changed files with 8 additions and 1 deletions

View File

@ -266,7 +266,14 @@ namespace OpenSim.Server.Base
{
while (m_Running)
{
MainConsole.Instance.Prompt();
try
{
MainConsole.Instance.Prompt();
}
catch (Exception e)
{
m_log.ErrorFormat("Command error: {0}", e);
}
}
if (m_pidFile != String.Empty)