From c0019172d2ca61eaa1297c1a6527533f99f49e42 Mon Sep 17 00:00:00 2001 From: sirh3e Date: Thu, 12 Nov 2020 18:30:14 +0100 Subject: [PATCH] Update ApplicationFactory.cs (#777) --- src/Microsoft.Tye.Core/ApplicationFactory.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.Tye.Core/ApplicationFactory.cs b/src/Microsoft.Tye.Core/ApplicationFactory.cs index d47fe28a..581a090e 100644 --- a/src/Microsoft.Tye.Core/ApplicationFactory.cs +++ b/src/Microsoft.Tye.Core/ApplicationFactory.cs @@ -35,9 +35,8 @@ namespace Microsoft.Tye queue.Enqueue((rootConfig, new HashSet())); - while (queue.Count > 0) + while (queue.TryDequeue(out var item)) { - var item = queue.Dequeue(); var config = item.Item1; // dependencies represents a set of all dependencies