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

Now clearing the interrupt flag.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2022-03-23 19:06:39 +01:00 committed by GitHub
parent e0788ab056
commit 7b648f6d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

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