Skip to content

Commit 4d3cba2

Browse files
authored
Interruption needs to be handled through the exception handling mechanism (#480)
1 parent 32709c2 commit 4d3cba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/pivovarit/collectors/Dispatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void start() {
5252
started = true;
5353
dispatcher.execute(() -> {
5454
try {
55-
while (!Thread.currentThread().isInterrupted()) {
55+
while (true) {
5656
Runnable task;
5757
if ((task = workingQueue.take()) != POISON_PILL) {
5858
limiter.acquire();

0 commit comments

Comments
 (0)