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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user