Skip to content

Commit

Permalink
fix compile error & set termination timeout to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Jul 7, 2024
1 parent 747c4c2 commit e95b4bf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ public void shutdownExecutor() {
}
if (executor != null) {
executor.shutdown();
executor.awaitTermination();
try {
executor.awaitTermination(5, TimeUnit.SECONDS);
} catch (InterruptedException e) {
// ignore, it's fine if the last tidbit of console output doesn't get sent
}
executor = null;
}
}
Expand Down

0 comments on commit e95b4bf

Please sign in to comment.