Address new Rider inspections (EAP) (#2418)

This commit is contained in:
Łukasz Domeradzki
2021-10-01 01:21:09 +02:00
committed by GitHub
parent 99205fa278
commit 965d3050a5
8 changed files with 34 additions and 31 deletions

View File

@@ -61,6 +61,7 @@ namespace ArchiSteamFarm.Helpers {
return;
}
// ReSharper disable once SuspiciousLockOverSynchronizationPrimitive - this is not a mistake, we need extra synchronization, and we can re-use the semaphore object for that
lock (FileSemaphore) {
if (SavingScheduled) {
return;
@@ -72,6 +73,7 @@ namespace ArchiSteamFarm.Helpers {
await FileSemaphore.WaitAsync().ConfigureAwait(false);
try {
// ReSharper disable once SuspiciousLockOverSynchronizationPrimitive - this is not a mistake, we need extra synchronization, and we can re-use the semaphore object for that
lock (FileSemaphore) {
SavingScheduled = false;
}