416477 - QueuedThreadPool does not reuse interrupted threads
This commit is contained in:
parent
f0c44ccff7
commit
16d22828fd
|
@ -535,12 +535,14 @@ public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo
|
|||
startThreads(1);
|
||||
}
|
||||
|
||||
while (isRunning())
|
||||
loop: while (isRunning())
|
||||
{
|
||||
// Job loop
|
||||
while (job != null && isRunning())
|
||||
{
|
||||
runJob(job);
|
||||
if (Thread.interrupted())
|
||||
break loop;
|
||||
job = _jobs.poll();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue