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
parent
6bbf4fdc0f
commit
f9e6e32ce2
|
@ -265,9 +265,16 @@ namespace OpenSim.Server.Base
|
||||||
public virtual int Run()
|
public virtual int Run()
|
||||||
{
|
{
|
||||||
while (m_Running)
|
while (m_Running)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Prompt();
|
MainConsole.Instance.Prompt();
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
m_log.ErrorFormat("Command error: {0}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (m_pidFile != String.Empty)
|
if (m_pidFile != String.Empty)
|
||||||
File.Delete(m_pidFile);
|
File.Delete(m_pidFile);
|
||||||
|
|
Loading…
Reference in New Issue