Add a delay in initial resolve

This will avoid unnecessary purge in the first run and missing packages
This commit is contained in:
JustArchi
2021-01-03 23:36:28 +01:00
parent 71b023c16d
commit a9ccc27f81

View File

@@ -2606,6 +2606,11 @@ namespace ArchiSteamFarm {
return;
}
// Wait a short time for eventual LastChangeNumber initialization
for (byte i = 0; (i < WebBrowser.MaxTries) && (ASF.GlobalDatabase.LastChangeNumber == 0); i++) {
await Task.Delay(1000).ConfigureAwait(false);
}
Commands.OnNewLicenseList();
Dictionary<uint, (EPaymentMethod PaymentMethod, DateTime TimeCreated)> ownedPackageIDs = new();