mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 16:41:01 +00:00
Misc optimization
I had to miss this one.
This commit is contained in:
@@ -159,7 +159,7 @@ namespace ArchiSteamFarm {
|
|||||||
await FileSemaphore.WaitAsync().ConfigureAwait(false);
|
await FileSemaphore.WaitAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
File.WriteAllText(newFilePath, json);
|
await File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
|
||||||
|
|
||||||
if (File.Exists(FilePath)) {
|
if (File.Exists(FilePath)) {
|
||||||
File.Replace(newFilePath, FilePath, null);
|
File.Replace(newFilePath, FilePath, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user