From f86bc32f0de1b68156516013c8bda841a3d267f3 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 5 Feb 2016 20:11:04 +0100 Subject: [PATCH] Misc fix --- ArchiSteamFarm/Bot.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index efd30d14022b4..02b0105783f9d 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -146,10 +146,6 @@ internal Bot(string botName, bool initialLaunch = false) { Bots.AddOrUpdate(BotName, this, (key, value) => this); - if (initialLaunch && !StartOnLaunch) { - return; - } - // Initialize SteamClient = new SteamClient(); @@ -198,6 +194,10 @@ internal Bot(string botName, bool initialLaunch = false) { ); } + if (initialLaunch && !StartOnLaunch) { + return; + } + // Start var start = Task.Run(async () => await Start().ConfigureAwait(false)); }