Skip to content

Commit

Permalink
Issue jetty#7650 - Fix race condition when stopping QueuedThreadPool
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Zöchbauer <[email protected]>
  • Loading branch information
dzoech committed Feb 3, 2023
1 parent 2f431ff commit 613fd28
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ protected void doStop() throws Exception
}

// Close any un-executed jobs
while (!_jobs.isEmpty())
{
while (true) {
Runnable job = _jobs.poll();
if (job == null) {
break;
}
if (job instanceof Closeable)
{
try
Expand Down

0 comments on commit 613fd28

Please sign in to comment.