mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use async json serialization.
This commit is contained in:
parent
1ee8790189
commit
1aa853067a
@ -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…
x
Reference in New Issue
Block a user