1
0

Remove possible infinite loop in dcg

This commit is contained in:
nicolas.dorier
2020-01-21 19:05:40 +09:00
parent 3118e62f3a
commit 56ce1cc3c5

View File

@@ -106,7 +106,9 @@ namespace DockerGenerator
unprocessedFragments.Remove(fragment);
}
foreach (var fragment in requiredFragments.Concat(recommendedFragments).Where(f => !processedFragments.Contains(f)))
foreach (var fragment in requiredFragments
.Concat(recommendedFragments)
.Where(f => !processedFragments.Contains(f) && !fragmentsNotFound.Contains(f)))
{
unprocessedFragments.Add(fragment);
}