From fb2d17824225e9849a45bc146fa6e09f3c71b1fb Mon Sep 17 00:00:00 2001 From: dkanada Date: Tue, 23 Feb 2021 23:39:33 +0900 Subject: [PATCH] add await directive for image download Co-authored-by: Cody Robibero --- Emby.Server.Implementations/Plugins/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index b0a8aba168..d8dac65991 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -384,7 +384,7 @@ namespace Emby.Server.Implementations.Plugins imagePath = Path.Join(path, url.Segments[^1]); await using var fileStream = File.OpenWrite(imagePath); - var downloadStream = await HttpClientFactory + await using var downloadStream = await HttpClientFactory .CreateClient(NamedClient.Default) .GetStreamAsync(url) .ConfigureAwait(false);