mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-19 06:11:14 +02:00
Use async json serialization.
This commit is contained in:
parent
1ee8790189
commit
1aa853067a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue