Add GlobalConfig to /Api/ASF, and POST /Api/ASF, #750

This commit is contained in:
JustArchi
2018-02-22 16:08:50 +01:00
parent 8194e51214
commit 37564d0cfe
3 changed files with 121 additions and 5 deletions

View File

@@ -201,9 +201,17 @@ namespace ArchiSteamFarm {
}
internal async Task MakeReadOnly() {
if (ReadOnly) {
return;
}
await FileSemaphore.WaitAsync().ConfigureAwait(false);
try {
if (ReadOnly) {
return;
}
ReadOnly = true;
} finally {
FileSemaphore.Release();