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 /Emby.Server.Implementations/IO/ManagedFileSystem.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 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
| -rw-r--r-- | Emby.Server.Implementations/IO/ManagedFileSystem.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs index 2c722ff25..f2f950ecb 100644 --- a/Emby.Server.Implementations/IO/ManagedFileSystem.cs +++ b/Emby.Server.Implementations/IO/ManagedFileSystem.cs @@ -248,7 +248,7 @@ namespace Emby.Server.Implementations.IO { try { - using (Stream thisFileStream = File.OpenRead(fileInfo.FullName)) + using (Stream thisFileStream = new FileStream(fileInfo.FullName, FileMode.Open, FileAccess.Read, FileShare.Read, 1)) { result.Length = thisFileStream.Length; } |
