Skip to content

Commit

Permalink
Handle interrupted exception at task level (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Oct 9, 2023
1 parent b6a029a commit b9dbdb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/pivovarit/collectors/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void start() {
task.run();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
handle(e);
throw new RuntimeException(e);
} finally {
limiter.release();
Expand Down

0 comments on commit b9dbdb2

Please sign in to comment.