/// <summary> /// Shut down all bots /// </summary> /// <remarks> /// We launch each shutdown on its own thread so that a slow shutting down bot doesn't hold up all the others. /// </remarks> public void doBotShutdown() { lock (m_lBot) { foreach (Bot bot in m_lBot) { Bot thisBot = bot; Util.FireAndForget(o => thisBot.shutdown()); } } }