Skip to content

Commit

Permalink
Improve responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed May 4, 2024
1 parent c30b090 commit f17e70c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FreePackages/Handlers/PackageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ private void HandleNewPackage(FilterablePackage package) {

if (dlcAppIDs.Count != 0) {
BotCache.AddChanges(appIDs: dlcAppIDs);
Utilities.InBackground(async() => await HandleChanges().ConfigureAwait(false));
}
} finally {
BotCache.RemoveChange(newOwnedPackageID: package.ID);
Expand All @@ -406,6 +407,7 @@ internal void HandleLicenseList(SteamApps.LicenseListCallback callback) {

if (BotCache.SeenPackages.Count > 0) {
BotCache.AddChanges(newOwnedPackageIDs: newOwnedPackageIDs);
Utilities.InBackground(async() => await HandleChanges().ConfigureAwait(false));
}

BotCache.UpdateSeenPackages(newOwnedPackageIDs);
Expand Down

0 comments on commit f17e70c

Please sign in to comment.