Skip to content

Commit

Permalink
fix component that avoided killing the thread
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 30, 2023
1 parent af2df15 commit eab7377
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public static void printProgress(Thread downloadThread,
while (Thread.currentThread().isAlive() && (downloadThread.isAlive() || keep)) {
boolean end = consumer.get().keySet().contains(TOTAL_PROGRESS_KEY)
&& consumer.get().get(TOTAL_PROGRESS_KEY) == 1.0;
try {Thread.sleep(keep == true || end ? 10 : 3000);} catch (InterruptedException ex) {}
try {Thread.sleep(keep == true || end ? 10 : 3000);} catch (InterruptedException ex) {Thread.currentThread().interrupt();}
keep = false;
String select = null;
for (String key : consumer.get().keySet()) {
Expand Down

0 comments on commit eab7377

Please sign in to comment.