Skip to content

Commit

Permalink
Issue #4122 QueuedThreadPool
Browse files Browse the repository at this point in the history
Always clear the interrupted status

Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Oct 2, 2019
1 parent 3ad6780 commit c37a4ff
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,6 @@ else if (_counts.getHi() == Integer.MIN_VALUE)
runJob(job);
if (LOG.isDebugEnabled())
LOG.debug("ran {} in {}", job, QueuedThreadPool.this);

// Clear any interrupted status
Thread.interrupted();
}
catch (InterruptedException e)
{
Expand All @@ -936,6 +933,11 @@ else if (_counts.getHi() == Integer.MIN_VALUE)
{
LOG.warn(e);
}
finally
{
// Clear any interrupted status
Thread.interrupted();
}
}
}
finally
Expand Down

0 comments on commit c37a4ff

Please sign in to comment.