aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/ManagedFileSystem.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-06-12 22:20:35 +0200
committerBond_009 <bond.009@outlook.com>2021-09-02 14:02:04 +0200
commite3dac4fda2033801085eb7086a3a534c473a00a0 (patch)
tree01de832fd8bf4d40717e55d8def82c308c1d30d8 /Emby.Server.Implementations/IO/ManagedFileSystem.cs
parent620dd9497025761f208fc3ce7b78caf8c2f7835f (diff)
Use async FileStreams where it makes sense
Diffstat (limited to 'Emby.Server.Implementations/IO/ManagedFileSystem.cs')
-rw-r--r--Emby.Server.Implementations/IO/ManagedFileSystem.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/IO/ManagedFileSystem.cs b/Emby.Server.Implementations/IO/ManagedFileSystem.cs
index 7c3c7da23..af0d88ea5 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;
}