summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-15 19:13:32 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-15 19:13:32 -0400
commit3253797cbab1e49901b9da3701954f93282363fd (patch)
tree6491cf9094c1d7e5645ad5c398fc604ad8ff4a08 /src/SMAPI.Toolkit
parent8505f4ae4dc5c7bf64c1ea9ae4ea9fd38c4bd1c4 (diff)
downloadSMAPI-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.cs2
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();
}