corrade-vassal – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | vero | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Text; |
||
4 | using OpenMetaverse; |
||
5 | |||
6 | namespace OpenMetaverse.TestClient |
||
7 | { |
||
8 | public class WaitForLoginCommand : Command |
||
9 | { |
||
10 | public WaitForLoginCommand(TestClient testClient) |
||
11 | { |
||
12 | Name = "waitforlogin"; |
||
13 | Description = "Waits until all bots that are currently attempting to login have succeeded or failed"; |
||
14 | Category = CommandCategory.TestClient; |
||
15 | } |
||
16 | |||
17 | public override string Execute(string[] args, UUID fromAgentID) |
||
18 | { |
||
19 | while (ClientManager.Instance.PendingLogins > 0) |
||
20 | { |
||
21 | System.Threading.Thread.Sleep(1000); |
||
22 | Logger.Log("Pending logins: " + ClientManager.Instance.PendingLogins, Helpers.LogLevel.Info); |
||
23 | } |
||
24 | |||
25 | return "All pending logins have completed, currently tracking " + ClientManager.Instance.Clients.Count + " bots"; |
||
26 | } |
||
27 | } |
||
28 | } |