mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +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
|
|
@ -72,7 +72,7 @@ namespace Emby.Server.Implementations.Serialization
|
|||
/// <param name="file">The file.</param>
|
||||
public void SerializeToFile(object obj, string file)
|
||||
{
|
||||
using (var stream = new FileStream(file, FileMode.Create))
|
||||
using (var stream = new FileStream(file, FileMode.Create, FileAccess.Write))
|
||||
{
|
||||
SerializeToStream(obj, stream);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue