This callback should always arrive with update, so we don't need read overhead
This commit is contained in:
JustArchi
2017-06-20 02:27:14 +02:00
parent 8e29e57b47
commit dc8af5efab

View File

@@ -1580,8 +1580,7 @@ namespace ArchiSteamFarm {
return;
}
HashSet<uint> ownedPackageIDs = new HashSet<uint>(callback.LicenseList.Select(license => license.PackageID));
OwnedPackageIDs.ReplaceIfNeededWith(ownedPackageIDs);
OwnedPackageIDs.ReplaceWith(callback.LicenseList.Select(license => license.PackageID));
await Task.Delay(1000).ConfigureAwait(false); // Wait a second for eventual PlayingSessionStateCallback or SharedLibraryLockStatusCallback