Skip to content

Commit bf2dca2

Browse files
Merge pull request #363 from mcavanagh/conditions-compiler-race
Race condition fix for ConditionsCompilerProvider dictionary access
2 parents 09feaea + 502b254 commit bf2dca2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

QueryBuilder/Compilers/ConditionsCompilerProvider.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ public MethodInfo GetMethodInfo(Type clauseType, string methodName)
2121
// The cache key should take the type and the method name into consideration
2222
var cacheKey = methodName + "::" + clauseType.FullName;
2323

24-
if (methodsCache.ContainsKey(cacheKey))
25-
{
26-
return methodsCache[cacheKey];
27-
}
28-
2924
lock (syncRoot)
3025
{
3126
if (methodsCache.ContainsKey(cacheKey))

0 commit comments

Comments
 (0)