mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Never register bots with broken databases as available for use
This commit is contained in:
@@ -182,11 +182,6 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
// Register bot as available for ASF
|
||||
if (!Bots.TryAdd(botName, this)) {
|
||||
throw new ArgumentException("That bot is already defined!");
|
||||
}
|
||||
|
||||
string botDatabaseFile = botPath + ".db";
|
||||
|
||||
BotDatabase = BotDatabase.Load(botDatabaseFile);
|
||||
@@ -195,6 +190,11 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
// Register bot as available for ASF
|
||||
if (!Bots.TryAdd(botName, this)) {
|
||||
throw new ArgumentException("That bot is already defined!");
|
||||
}
|
||||
|
||||
if (BotDatabase.MobileAuthenticator != null) {
|
||||
BotDatabase.MobileAuthenticator.Init(this);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user