diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-09-06 13:55:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-06 13:55:34 +0200 |
| commit | 74fef6c05bd61a8d1a3eba421c687619e7af19e1 (patch) | |
| tree | e160b79312891a69af5ce3301268760772e594f7 /Emby.Server.Implementations/Plugins/PluginManager.cs | |
| parent | bf0a0c8b62aeb6eac6737461aac86c2e5a896f6d (diff) | |
| parent | e3dac4fda2033801085eb7086a3a534c473a00a0 (diff) | |
Merge pull request #6177 from Bond-009/async
Use async FileStreams where it makes sense
Diffstat (limited to 'Emby.Server.Implementations/Plugins/PluginManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Plugins/PluginManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index fc0920edf..b8e1dc2c0 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -15,6 +15,7 @@ using Jellyfin.Extensions.Json.Converters; using MediaBrowser.Common.Net; using MediaBrowser.Common.Plugins; using MediaBrowser.Model.Configuration; +using MediaBrowser.Model.IO; using MediaBrowser.Model.Plugins; using MediaBrowser.Model.Updates; using Microsoft.Extensions.DependencyInjection; @@ -371,7 +372,7 @@ namespace Emby.Server.Implementations.Plugins var url = new Uri(packageInfo.ImageUrl); imagePath = Path.Join(path, url.Segments[^1]); - await using var fileStream = File.OpenWrite(imagePath); + await using var fileStream = AsyncFile.OpenWrite(imagePath); try { |
