Skip to content

Commit

Permalink
Handle interruptions using same stragegy as any other Dispatcher exce…
Browse files Browse the repository at this point in the history
…ption (#786)
  • Loading branch information
pivovarit authored Oct 9, 2023
1 parent b9dbdb2 commit d4d235f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/pivovarit/collectors/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ void start() {
limiter.acquire();
task.run();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
handle(e);
throw new RuntimeException(e);
} finally {
limiter.release();
}
Expand Down

0 comments on commit d4d235f

Please sign in to comment.