Spin up new generator tasks on queued work when past ones have completed

This commit is contained in:
John Lewin 2017-09-29 21:34:04 -07:00
parent 90afe0f161
commit 2f22ac9107

View file

@ -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);