LIBOMV-850: TestClient crashes when console reads an end-of-file

Patch by Rpbert Adams

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3473 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Latif Khalifa
2010-11-20 14:14:26 +00:00
parent d51de2105e
commit d27255fe2f
2 changed files with 21 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ namespace OpenMetaverse.TestClient
UUID masterKey = UUID.Zero;
string file = String.Empty;
bool getTextures = false;
bool noGUI = false; // true if to not prompt for input
string scriptFile = String.Empty;
if (arguments["groupcommands"] != null)
@@ -50,6 +51,9 @@ namespace OpenMetaverse.TestClient
if (arguments["gettextures"] != null)
getTextures = true;
if (arguments["nogui"] != null)
noGUI = true;
if (arguments["scriptfile"] != null)
{
scriptFile = arguments["scriptfile"];
@@ -154,7 +158,7 @@ namespace OpenMetaverse.TestClient
ClientManager.Instance.DoCommandAll("script " + scriptFile, UUID.Zero);
// Then Run the ClientManager normally
ClientManager.Instance.Run();
ClientManager.Instance.Run(noGUI);
}
}
}