Let TaskExecutorDialogPane close itself when finished

This commit is contained in:
huanghongxun
2018-12-18 12:35:03 +08:00
parent bc34427793
commit a015585bd1
5 changed files with 19 additions and 10 deletions

View File

@@ -257,8 +257,7 @@ public final class TaskExecutor {
@Override
public void run() {
try {
if (Thread.currentThread().getName().contains("pool"))
Thread.currentThread().setName(task.getName());
Thread.currentThread().setName(task.getName());
if (!executeTask(task))
success.set(false);
} finally {