|
|
|
@ -364,7 +364,6 @@ public class SimpleAsyncTaskExecutor extends CustomizableThreadCreator |
|
|
|
this.active = false; |
|
|
|
this.active = false; |
|
|
|
Set<Thread> threads = this.activeThreads; |
|
|
|
Set<Thread> threads = this.activeThreads; |
|
|
|
if (threads != null) { |
|
|
|
if (threads != null) { |
|
|
|
threads.forEach(Thread::interrupt); |
|
|
|
|
|
|
|
synchronized (threads) { |
|
|
|
synchronized (threads) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (!threads.isEmpty()) { |
|
|
|
if (!threads.isEmpty()) { |
|
|
|
@ -375,6 +374,7 @@ public class SimpleAsyncTaskExecutor extends CustomizableThreadCreator |
|
|
|
Thread.currentThread().interrupt(); |
|
|
|
Thread.currentThread().interrupt(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
threads.forEach(Thread::interrupt); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|