Dispose Stream (though it maybe already disposed by disposed the response)

This commit is contained in:
Hongtao Zhang 2022-10-27 11:38:05 -05:00
parent c39a727e3b
commit 99fd8d1232
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -35,7 +35,7 @@ namespace Flow.Launcher.Core.ExternalPlugins
{
Log.Info($"|PluginsManifest.{nameof(UpdateManifestAsync)}|Fetched plugins from manifest repo");
var json = await response.Content.ReadAsStreamAsync(token).ConfigureAwait(false);
await using var json = await response.Content.ReadAsStreamAsync(token).ConfigureAwait(false);
UserPlugins = await JsonSerializer.DeserializeAsync<List<UserPlugin>>(json, cancellationToken: token).ConfigureAwait(false);