mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 00:35:26 +03:00
Merge pull request #6177 from Bond-009/async
Use async FileStreams where it makes sense
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user