From f17e70c27a85c4639156c48a80c1d53883305de1 Mon Sep 17 00:00:00 2001 From: Citrinate Date: Sat, 4 May 2024 19:03:08 -0400 Subject: [PATCH] Improve responsiveness --- FreePackages/Handlers/PackageHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FreePackages/Handlers/PackageHandler.cs b/FreePackages/Handlers/PackageHandler.cs index f3e7043..421be42 100644 --- a/FreePackages/Handlers/PackageHandler.cs +++ b/FreePackages/Handlers/PackageHandler.cs @@ -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); @@ -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);