Skip to content

Commit

Permalink
Fix: Interrupt the thread in QueuedThreadPoolExecutor.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed Feb 19, 2021
1 parent e0e8be8 commit 7b65526
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void waitTillIdle(final long timeoutMillis) {
unfinishedTasksCount.waitTillZero(timeoutMillis, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
logger.log(SentryLevel.ERROR, "Failed to wait till idle", e);
Thread.currentThread().interrupt();
}
}

Expand Down

0 comments on commit 7b65526

Please sign in to comment.