mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Prevent the crash due to exception in system ReadLine that I saw today
during loadtesting.
This commit is contained in:
@@ -302,9 +302,14 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
public string ReadLine()
|
||||
{
|
||||
string TempStr = System.Console.ReadLine();
|
||||
Log.WriteLine(TempStr);
|
||||
return TempStr;
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user