diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-05-15 19:13:32 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-05-15 19:13:32 -0400 |
commit | 3253797cbab1e49901b9da3701954f93282363fd (patch) | |
tree | 6491cf9094c1d7e5645ad5c398fc604ad8ff4a08 /src/SMAPI.Toolkit | |
parent | 8505f4ae4dc5c7bf64c1ea9ae4ea9fd38c4bd1c4 (diff) | |
download | SMAPI-3253797cbab1e49901b9da3701954f93282363fd.tar.gz SMAPI-3253797cbab1e49901b9da3701954f93282363fd.tar.bz2 SMAPI-3253797cbab1e49901b9da3701954f93282363fd.zip |
fix wiki client not being disposed
Diffstat (limited to 'src/SMAPI.Toolkit')
-rw-r--r-- | src/SMAPI.Toolkit/ModToolkit.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/ModToolkit.cs b/src/SMAPI.Toolkit/ModToolkit.cs index ce14b057..0df75a31 100644 --- a/src/SMAPI.Toolkit/ModToolkit.cs +++ b/src/SMAPI.Toolkit/ModToolkit.cs @@ -57,7 +57,7 @@ namespace StardewModdingAPI.Toolkit /// <summary>Extract mod metadata from the wiki compatibility list.</summary> public async Task<WikiModList> GetWikiCompatibilityListAsync() { - WikiClient client = new(this.UserAgent); + using WikiClient client = new(this.UserAgent); return await client.FetchModsAsync(); } |