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()
|
public string ReadLine()
|
||||||
{
|
{
|
||||||
string TempStr = System.Console.ReadLine();
|
try {
|
||||||
Log.WriteLine(TempStr);
|
string TempStr = System.Console.ReadLine();
|
||||||
return TempStr;
|
Log.WriteLine(TempStr);
|
||||||
|
return TempStr;
|
||||||
|
} catch (Exception e) {
|
||||||
|
MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString());
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Read()
|
public int Read()
|
||||||
|
|
Loading…
Reference in New Issue