diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-07-25 13:07:12 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-07-25 13:07:12 -0400 |
| commit | 1aa853067a5b6daf54bfd01b38e4a4c8256d07c3 (patch) | |
| tree | 9686fa1d215ac9d67a498a348b4ce64006e8e1ab /Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs | |
| parent | 1ee87901897290e971c2c65020f5576c08b0dc43 (diff) | |
Use async json serialization.
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs index 9b0201bfb..6cb13cd23 100644 --- a/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs +++ b/Jellyfin.Server.Implementations/Users/DefaultPasswordResetProvider.cs @@ -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); } |
