mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
Use async FileStreams where it makes sense
This commit is contained in:
parent
620dd94970
commit
e3dac4fda2
40 changed files with 125 additions and 98 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue