mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-09 14:12:23 +00:00
Use async json serialization.
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Jellyfin.Server.Implementations.Users
|
||||
|
||||
await using (FileStream fileStream = File.OpenWrite(filePath))
|
||||
{
|
||||
fileStream.Write(JsonSerializer.SerializeToUtf8Bytes(spr));
|
||||
await JsonSerializer.SerializeAsync(fileStream, spr).ConfigureAwait(false);
|
||||
await fileStream.FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user