Add misc fallback

This commit is contained in:
JustArchi
2018-09-29 15:37:31 +02:00
parent 77d2414f95
commit f3f00eae25

View File

@@ -1986,6 +1986,11 @@ namespace ArchiSteamFarm {
}
}
// TODO: Until https://github.com/dotnet/corefx/issues/27232 is dealt with, use this fallback as an alternative for keys import
if (OS.IsUnix && File.Exists(KeysToRedeemFilePath)) {
await ImportKeysToRedeem(KeysToRedeemFilePath).ConfigureAwait(false);
}
if ((GamesRedeemerInBackgroundTimer == null) && BotDatabase.HasGamesToRedeemInBackground) {
Utilities.InBackground(RedeemGamesInBackground);
}