|
@@ -84,7 +84,7 @@ namespace Jellyfin.Api.Helpers
|
|
var allowAsyncFileRead = false;
|
|
var allowAsyncFileRead = false;
|
|
|
|
|
|
// use non-async filestream along with read due to https://github.com/dotnet/corefx/issues/6039
|
|
// use non-async filestream along with read due to https://github.com/dotnet/corefx/issues/6039
|
|
- if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
|
|
|
|
+ if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
{
|
|
{
|
|
fileOptions |= FileOptions.Asynchronous;
|
|
fileOptions |= FileOptions.Asynchronous;
|
|
allowAsyncFileRead = true;
|
|
allowAsyncFileRead = true;
|