Skip to content

Commit

Permalink
Corrected closing vs shutdown of executor service;
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Jan 8, 2024
1 parent 8b00af7 commit 9ca388c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17, 21 ]
java: [ 8, 11, 17, 21 ]
name: Java ${{ matrix.java }}

steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public ErtlFunctionalGroupsFinderPerformanceSnapshotApp(String[] anArgs) throws
}
tmpResultsPrintWriter.println(tmpExceptionsCounter + " molecules produced an exception.");
tmpResultsPrintWriter.flush();
executor.close();
executor.shutdownNow();
tmpResultsPrintWriter.println();
tmpResultsPrintWriter.flush();
tmpResultsPrintWriter.close();
Expand All @@ -248,7 +248,7 @@ public ErtlFunctionalGroupsFinderPerformanceSnapshotApp(String[] anArgs) throws
}
} finally {
if (!Objects.isNull(executor)) {
executor.close();
executor.shutdownNow();
}
if (!Objects.isNull(tmpResultsPrintWriter)) {
tmpResultsPrintWriter.close();
Expand Down

0 comments on commit 9ca388c

Please sign in to comment.