diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2021-02-23 23:39:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 23:39:33 +0900 |
| commit | fb2d17824225e9849a45bc146fa6e09f3c71b1fb (patch) | |
| tree | 6a25ceb780c5a47b335c6aca0ce1abd8bd3fa7e4 /Emby.Server.Implementations/Plugins/PluginManager.cs | |
| parent | e9030a62fb9bc48f52b9f961d20e972ad300abeb (diff) | |
add await directive for image download
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Emby.Server.Implementations/Plugins/PluginManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Plugins/PluginManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index b0a8aba16..d8dac6599 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); |
