mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-12 06:34:25 +00:00
Misc
No point in refreshing all of the packages, just the packages we already know about. In 99.9% cases it'll be exactly the same data anyway.
This commit is contained in:
@@ -199,12 +199,12 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
Dictionary<uint, uint> packageIDs = Bot.Bots.Values.SelectMany(bot => bot.OwnedPackageIDs.Keys).Distinct().ToDictionary(packageID => packageID, _ => currentChangeNumber);
|
||||
|
||||
if (packageIDs.Count == 0) {
|
||||
if (PackagesData.IsEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
Dictionary<uint, uint> packageIDs = PackagesData.Keys.ToDictionary(packageID => packageID, _ => currentChangeNumber);
|
||||
|
||||
await RefreshPackages(refreshBot, packageIDs).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user