Skip to content

Commit 63be99a

Browse files
committed
Re-interrupt interrupted thread in BubbleSortParallel
1 parent 72e4e27 commit 63be99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/happycoders/sort/method/bubblesort/BubbleSortParallel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void sort(int[] elements) {
5353
try {
5454
threads[i].join();
5555
} catch (InterruptedException e) {
56-
throw new Error(e);
56+
Thread.currentThread().interrupt();
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)