mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
*Fixed bug that caused failure when System.Console.Readline returns null (no stdin)
*Fixed bug that would crash the simulator if there were two physics/meshing engines loaded with the same name.
This commit is contained in:
@@ -230,7 +230,14 @@ namespace OpenSim.Framework.Console
|
||||
{
|
||||
try
|
||||
{
|
||||
return System.Console.ReadLine();
|
||||
string line = System.Console.ReadLine();
|
||||
while(line == null)
|
||||
{
|
||||
|
||||
line = System.Console.ReadLine();
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -357,7 +364,8 @@ namespace OpenSim.Framework.Console
|
||||
public void Prompt()
|
||||
{
|
||||
string tempstr = CmdPrompt(m_componentName + "# ");
|
||||
RunCommand(tempstr);
|
||||
RunCommand(tempstr);
|
||||
|
||||
}
|
||||
|
||||
public void RunCommand(string cmdline)
|
||||
|
||||
Reference in New Issue
Block a user