Skip to content

Commit

Permalink
Core: Fix token refresh thread shutdown (apache#4958)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck authored Jun 5, 2022
1 parent ff7c217 commit f7b9621
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ public void close() throws IOException {
ScheduledExecutorService service = refreshExecutor;
this.refreshExecutor = null;

service.shutdown();
try {
if (service.awaitTermination(1, TimeUnit.MINUTES)) {
LOG.warn("Timed out waiting for refresh executor to terminate");
Expand Down

0 comments on commit f7b9621

Please sign in to comment.