add await directive for image download

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
dkanada 2021-02-23 23:39:33 +09:00 committed by GitHub
parent e9030a62fb
commit fb2d178242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);