From 2f22ac91078c859e848d072ddbf13650bb78a0eb Mon Sep 17 00:00:00 2001 From: John Lewin Date: Fri, 29 Sep 2017 21:34:04 -0700 Subject: [PATCH] Spin up new generator tasks on queued work when past ones have completed --- ApplicationView/ApplicationController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationView/ApplicationController.cs b/ApplicationView/ApplicationController.cs index e366af141..f26f36da3 100644 --- a/ApplicationView/ApplicationController.cs +++ b/ApplicationView/ApplicationController.cs @@ -195,7 +195,8 @@ namespace MatterHackers.MatterControl { lock(thumbsLock) { - if (thumbnailGenerator == null) + if (thumbnailGenerator == null + || thumbnailGenerator.IsCompleted) { // Spin up a new thread once needed thumbnailGenerator = Task.Run((Action)ThumbGeneration);