Misc optimization

I had to miss this one.
This commit is contained in:
JustArchi
2017-08-10 00:05:00 +02:00
parent e965899395
commit 388c72052c

View File

@@ -159,7 +159,7 @@ namespace ArchiSteamFarm {
await FileSemaphore.WaitAsync().ConfigureAwait(false);
try {
File.WriteAllText(newFilePath, json);
await File.WriteAllTextAsync(newFilePath, json).ConfigureAwait(false);
if (File.Exists(FilePath)) {
File.Replace(newFilePath, FilePath, null);