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.
remove-scene-viewer
Justin Clark-Casey (justincc) 2011-11-02 13:16:02 +00:00
parent c5fb39e21f
commit b6873a7b5d
1 changed files with 8 additions and 1 deletions

View File

@ -265,9 +265,16 @@ namespace OpenSim.Server.Base
public virtual int Run()
{
while (m_Running)
{
try
{
MainConsole.Instance.Prompt();
}
catch (Exception e)
{
m_log.ErrorFormat("Command error: {0}", e);
}
}
if (m_pidFile != String.Empty)
File.Delete(m_pidFile);