Spin up new generator tasks on queued work when past ones have completed
This commit is contained in:
parent
90afe0f161
commit
2f22ac9107
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue