diff --git a/Programs/examples/TestClient/ClientManager.cs b/Programs/examples/TestClient/ClientManager.cs index 4f287a74..6382cf17 100644 --- a/Programs/examples/TestClient/ClientManager.cs +++ b/Programs/examples/TestClient/ClientManager.cs @@ -342,15 +342,15 @@ namespace OpenMetaverse.TestClient TestClient testClient = (TestClient)state; if ((String.Empty == onlyAvatar) || (testClient.ToString() == onlyAvatar)) { if (testClient.Commands.ContainsKey(firstToken)) { - string result; - try { - result = testClient.Commands[firstToken].Execute(args, fromAgentID); - Logger.Log(result, Helpers.LogLevel.Info, testClient); - } catch(Exception e) { - Logger.Log(String.Format("{0} raised exception {1}", firstToken, e), - Helpers.LogLevel.Error, - testClient); - } + string result; + try { + result = testClient.Commands[firstToken].Execute(args, fromAgentID); + Logger.Log(result, Helpers.LogLevel.Info, testClient); + } catch(Exception e) { + Logger.Log(String.Format("{0} raised exception {1}", firstToken, e), + Helpers.LogLevel.Error, + testClient); + } } else Logger.Log("Unknown command " + firstToken, Helpers.LogLevel.Warning); } diff --git a/Programs/examples/TestClient/Commands/Inventory/DownloadCommand.cs b/Programs/examples/TestClient/Commands/Inventory/DownloadCommand.cs index 5dc47573..9ee4a558 100644 --- a/Programs/examples/TestClient/Commands/Inventory/DownloadCommand.cs +++ b/Programs/examples/TestClient/Commands/Inventory/DownloadCommand.cs @@ -32,31 +32,31 @@ namespace OpenMetaverse.TestClient DownloadHandle.Reset(); if (!UUID.TryParse(args[0], out AssetID)) - return usage; + return usage; - try { - assetType = (AssetType)Enum.Parse(typeof(AssetType), args[1], ignoreCase: true); - } catch (ArgumentException) { - return usage; - } - if (!Enum.IsDefined(typeof(AssetType), assetType)) - return usage; + try { + assetType = (AssetType)Enum.Parse(typeof(AssetType), args[1], ignoreCase: true); + } catch (ArgumentException) { + return usage; + } + if (!Enum.IsDefined(typeof(AssetType), assetType)) + return usage; - // Start the asset download - Client.Assets.RequestAsset(AssetID, assetType, true, Assets_OnAssetReceived); + // Start the asset download + Client.Assets.RequestAsset(AssetID, assetType, true, Assets_OnAssetReceived); - if (DownloadHandle.WaitOne(120 * 1000, false)) - { - if (Success) - return String.Format("Saved {0}.{1}", AssetID, assetType.ToString().ToLower()); - else - return String.Format("Failed to download asset {0}, perhaps {1} is the incorrect asset type?", - AssetID, assetType); - } - else - { - return "Timed out waiting for texture download"; - } + if (DownloadHandle.WaitOne(120 * 1000, false)) + { + if (Success) + return String.Format("Saved {0}.{1}", AssetID, assetType.ToString().ToLower()); + else + return String.Format("Failed to download asset {0}, perhaps {1} is the incorrect asset type?", + AssetID, assetType); + } + else + { + return "Timed out waiting for texture download"; + } } private void Assets_OnAssetReceived(AssetDownload transfer, Asset asset)