aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console
diff options
context:
space:
mode:
authorDalien Talbot2007-09-15 14:52:53 +0000
committerDalien Talbot2007-09-15 14:52:53 +0000
commitad903f1b7b8b75a6914c4e26bf08313e482c9072 (patch)
tree2fc12ea5116211bda73cc59c77beb4923b450494 /OpenSim/Framework/Console
parentNow loading "OpenSim.Region.ScriptEngine.Common.dll" into scripts AppDomain a... (diff)
downloadopensim-SC-ad903f1b7b8b75a6914c4e26bf08313e482c9072.zip
opensim-SC-ad903f1b7b8b75a6914c4e26bf08313e482c9072.tar.gz
opensim-SC-ad903f1b7b8b75a6914c4e26bf08313e482c9072.tar.bz2
opensim-SC-ad903f1b7b8b75a6914c4e26bf08313e482c9072.tar.xz
Prevent the crash due to exception in system ReadLine that I saw today
during loadtesting.
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index e5025e0..67440f6 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -302,9 +302,14 @@ namespace OpenSim.Framework.Console
302 302
303 public string ReadLine() 303 public string ReadLine()
304 { 304 {
305 string TempStr = System.Console.ReadLine(); 305 try {
306 Log.WriteLine(TempStr); 306 string TempStr = System.Console.ReadLine();
307 return TempStr; 307 Log.WriteLine(TempStr);
308 return TempStr;
309 } catch (Exception e) {
310 MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString());
311 return "";
312 }
308 } 313 }
309 314
310 public int Read() 315 public int Read()