refactor: start bot connection thread within BotManager rather than externally

This commit is contained in:
Justin Clark-Casey (justincc)
2013-08-19 21:25:17 +01:00
parent 079cd4e94f
commit ea3f024b8a
2 changed files with 27 additions and 5 deletions

View File

@@ -95,10 +95,7 @@ namespace pCampBot
int botcount = commandLineConfig.GetInt("botcount", 1);
//startup specified number of bots. 1 is the default
Thread startBotThread = new Thread(o => bm.dobotStartup(botcount, commandLineConfig));
startBotThread.Name = "Initial start bots thread";
startBotThread.Start();
bm.dobotStartup(botcount, commandLineConfig);
while (true)
{