* Wait up to 10 seconds for an event queue to connect if Self.Teleport() is called when no event queue is connected

* Check if a command exists before running it in TestClient

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2295 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-10-11 00:17:21 +00:00
parent 7939843f0d
commit 9dd0b44a48
2 changed files with 24 additions and 2 deletions

View File

@@ -259,8 +259,12 @@ namespace OpenMetaverse.TestClient
delegate(object state)
{
TestClient testClient = (TestClient)state;
Logger.Log(testClient.Commands[firstToken].Execute(args, fromAgentID),
Helpers.LogLevel.Info, testClient);
if (testClient.Commands.ContainsKey(firstToken))
Logger.Log(testClient.Commands[firstToken].Execute(args, fromAgentID),
Helpers.LogLevel.Info, testClient);
else
Logger.Log("Unknown command " + firstToken, Helpers.LogLevel.Warning);
++completed;
},
client);