diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-06-12 22:20:35 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-09-02 14:02:04 +0200 |
| commit | e3dac4fda2033801085eb7086a3a534c473a00a0 (patch) | |
| tree | 01de832fd8bf4d40717e55d8def82c308c1d30d8 /Emby.Server.Implementations/Plugins/PluginManager.cs | |
| parent | 620dd9497025761f208fc3ce7b78caf8c2f7835f (diff) | |
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 { |
