mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-30 03:13:17 +01:00
Use async FileStreams where it makes sense
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user