Prevent the crash due to exception in system ReadLine that I saw today
during loadtesting.afrisby
parent
ed68a3894c
commit
ad903f1b7b
|
@ -302,9 +302,14 @@ namespace OpenSim.Framework.Console
|
|||
|
||||
public string ReadLine()
|
||||
{
|
||||
try {
|
||||
string TempStr = System.Console.ReadLine();
|
||||
Log.WriteLine(TempStr);
|
||||
return TempStr;
|
||||
} catch (Exception e) {
|
||||
MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString());
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public int Read()
|
||||
|
|
Loading…
Reference in New Issue