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 /Jellyfin.Api/Helpers/ProgressiveFileCopier.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 'Jellyfin.Api/Helpers/ProgressiveFileCopier.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/ProgressiveFileCopier.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Api/Helpers/ProgressiveFileCopier.cs b/Jellyfin.Api/Helpers/ProgressiveFileCopier.cs index 963e17724..1fb4798ee 100644 --- a/Jellyfin.Api/Helpers/ProgressiveFileCopier.cs +++ b/Jellyfin.Api/Helpers/ProgressiveFileCopier.cs @@ -85,8 +85,7 @@ namespace Jellyfin.Api.Helpers var fileOptions = FileOptions.SequentialScan; var allowAsyncFileRead = false; - // use non-async filestream along with read due to https://github.com/dotnet/corefx/issues/6039 - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + if (AsyncFile.UseAsyncIO) { fileOptions |= FileOptions.Asynchronous; allowAsyncFileRead = true; |
