diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/pCampBot.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index ec5ad04..9e82577 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs | |||
@@ -27,7 +27,9 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | 29 | using System.Reflection; |
30 | using System.Threading; | ||
30 | using log4net; | 31 | using log4net; |
32 | using log4net.Config; | ||
31 | using Nini.Config; | 33 | using Nini.Config; |
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Console; | 35 | using OpenSim.Framework.Console; |
@@ -51,6 +53,8 @@ namespace pCampBot | |||
51 | [STAThread] | 53 | [STAThread] |
52 | public static void Main(string[] args) | 54 | public static void Main(string[] args) |
53 | { | 55 | { |
56 | XmlConfigurator.Configure(); | ||
57 | |||
54 | IConfig config = ParseConfig(args); | 58 | IConfig config = ParseConfig(args); |
55 | if (config.Get("help") != null || config.Get("loginuri") == null) | 59 | if (config.Get("help") != null || config.Get("loginuri") == null) |
56 | { | 60 | { |
@@ -67,7 +71,9 @@ namespace pCampBot | |||
67 | BotManager bm = new BotManager(); | 71 | BotManager bm = new BotManager(); |
68 | 72 | ||
69 | //startup specified number of bots. 1 is the default | 73 | //startup specified number of bots. 1 is the default |
70 | bm.dobotStartup(botcount, config); | 74 | Thread startBotThread = new Thread(o => bm.dobotStartup(botcount, config)); |
75 | startBotThread.Name = "Initial start bots thread"; | ||
76 | startBotThread.Start(); | ||
71 | 77 | ||
72 | while (true) | 78 | while (true) |
73 | { | 79 | { |