mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-13 15:10:36 +00:00
Address new Rider inspections (EAP) (#2418)
This commit is contained in:
committed by
GitHub
parent
99205fa278
commit
965d3050a5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user