mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
add await directive for image download
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user