소스 검색

add await directive for image download

Co-authored-by: Cody Robibero <cody@robibe.ro>
dkanada 4 년 전
부모
커밋
fb2d178242
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/Plugins/PluginManager.cs

+ 1 - 1
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);