Skip to content

Commit f86bc32

Browse files
committed
Misc fix
1 parent 18800ff commit f86bc32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ArchiSteamFarm/Bot.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ internal Bot(string botName, bool initialLaunch = false) {
146146

147147
Bots.AddOrUpdate(BotName, this, (key, value) => this);
148148

149-
if (initialLaunch && !StartOnLaunch) {
150-
return;
151-
}
152-
153149
// Initialize
154150
SteamClient = new SteamClient();
155151

@@ -198,6 +194,10 @@ internal Bot(string botName, bool initialLaunch = false) {
198194
);
199195
}
200196

197+
if (initialLaunch && !StartOnLaunch) {
198+
return;
199+
}
200+
201201
// Start
202202
var start = Task.Run(async () => await Start().ConfigureAwait(false));
203203
}

0 commit comments

Comments
 (0)