From adf504c20ce9fcf73ab014e6a314230153798fea Mon Sep 17 00:00:00 2001 From: Mole Date: Tue, 9 Mar 2021 09:33:34 +0100 Subject: [PATCH] Fix IncrementRequestedWriteLock --- src/Umbraco.Core/Scoping/Scope.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Scoping/Scope.cs b/src/Umbraco.Core/Scoping/Scope.cs index 819bc515edae..7015cee5ebd0 100644 --- a/src/Umbraco.Core/Scoping/Scope.cs +++ b/src/Umbraco.Core/Scoping/Scope.cs @@ -602,11 +602,11 @@ private void IncrementRequestedWriteLock(params int[] lockIds) { if (WriteLocks.ContainsKey(lockId)) { - WriteLocks[lockId] = 1; + WriteLocks[lockId] += 1; } else { - WriteLocks[lockId] += 1; + WriteLocks[lockId] = 1; } } }