aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/pCampBot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/pCampBot/pCampBot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/pCampBot.cs8
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
28using System; 28using System;
29using System.Reflection; 29using System.Reflection;
30using System.Threading;
30using log4net; 31using log4net;
32using log4net.Config;
31using Nini.Config; 33using Nini.Config;
32using OpenSim.Framework; 34using OpenSim.Framework;
33using OpenSim.Framework.Console; 35using 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 {