Skip to content

Commit

Permalink
chore: Fix compile error on java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Oct 7, 2024
1 parent 2c1eac8 commit 94d268a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public Future<?> submit(Runnable task) {

@Override
public void close() {
this.executor.close();
// In Java 17, executor.close() doesn't exist
this.executor.shutdown();
}
}

0 comments on commit 94d268a

Please sign in to comment.