diff --git a/ArchiSteamFarm/ConcurrentEnumerator.cs b/ArchiSteamFarm/ConcurrentEnumerator.cs index 54f5b035c..de993d74d 100644 --- a/ArchiSteamFarm/ConcurrentEnumerator.cs +++ b/ArchiSteamFarm/ConcurrentEnumerator.cs @@ -36,14 +36,14 @@ namespace ArchiSteamFarm { private readonly IEnumerator Enumerator; private readonly ReaderWriterLockSlim Lock; - internal ConcurrentEnumerator(ICollection collection, ReaderWriterLockSlim @lock) { - if ((collection == null) || (@lock == null)) { - throw new ArgumentNullException(nameof(collection) + " || " + nameof(@lock)); + internal ConcurrentEnumerator(ICollection collection, ReaderWriterLockSlim rwLock) { + if ((collection == null) || (rwLock == null)) { + throw new ArgumentNullException(nameof(collection) + " || " + nameof(rwLock)); } - @lock.EnterReadLock(); + rwLock.EnterReadLock(); - Lock = @lock; + Lock = rwLock; Enumerator = collection.GetEnumerator(); }