git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2716 52acb1d6-8a22-11de-b505-999d5b087335
29 lines
968 B
C#
29 lines
968 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class WaitForLoginCommand : Command
|
|
{
|
|
public WaitForLoginCommand(TestClient testClient)
|
|
{
|
|
Name = "waitforlogin";
|
|
Description = "Waits until all bots that are currently attempting to login have succeeded or failed";
|
|
Category = CommandCategory.TestClient;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
while (ClientManager.Instance.PendingLogins > 0)
|
|
{
|
|
System.Threading.Thread.Sleep(1000);
|
|
Logger.Log("Pending logins: " + ClientManager.Instance.PendingLogins, Helpers.LogLevel.Info);
|
|
}
|
|
|
|
return "All pending logins have completed, currently tracking " + ClientManager.Instance.Clients.Count + " bots";
|
|
}
|
|
}
|
|
}
|