# | Line 383 | Line 383 | public class ForkJoinWorkerThread extend | |
---|---|---|
383 | */ | |
384 | protected void onTermination(Throwable exception) { | |
385 | // Execute remaining local tasks unless aborting or terminating | |
386 | < | while (exception == null && !pool.isTerminating() && base != sp) { |
386 | > | while (exception == null && pool.isProcessingTasks() && base != sp) { |
387 | try { | |
388 | ForkJoinTask<?> t = popTask(); | |
389 | if (t != null) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |