Fixes #7548 - Interrupt flag is not always cleared in between requests. (#7563) (#7773)

Now clearing the interrupt flag.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
(cherry picked from commit 7b648f6d5c)
This commit is contained in:
Simone Bordet 2022-03-23 19:13:54 +01:00 committed by GitHub
parent df14e16162
commit 036cbe8dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -412,6 +412,11 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
{
LOG.warn("Unable to run task", e);
}
finally
{
// Clear any interrupted status.
Thread.interrupted();
}
}
}
finally