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 /Jellyfin.Api/Helpers/ProgressiveFileStream.cs | |
| parent | 620dd9497025761f208fc3ce7b78caf8c2f7835f (diff) | |
Use async FileStreams where it makes sense
Diffstat (limited to 'Jellyfin.Api/Helpers/ProgressiveFileStream.cs')
| -rw-r--r-- | Jellyfin.Api/Helpers/ProgressiveFileStream.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/ProgressiveFileStream.cs b/Jellyfin.Api/Helpers/ProgressiveFileStream.cs index 499dbe84d..82f35fc35 100644 --- a/Jellyfin.Api/Helpers/ProgressiveFileStream.cs +++ b/Jellyfin.Api/Helpers/ProgressiveFileStream.cs @@ -40,7 +40,7 @@ namespace Jellyfin.Api.Helpers _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; |
