mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 03:04:49 +03:00
Use async FileStreams where it makes sense
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user