Skip to content

Commit

Permalink
Merge pull request #22 from project-tsurugi/fix/load_close
Browse files Browse the repository at this point in the history
close Load object when job completed
  • Loading branch information
pmt-takayoshi-shiraki authored Dec 15, 2023
2 parents 23682a2 + 3cc615a commit 3970ccd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public void cancelJob() {

@Override
public void close() {
if (load != null) {
try {
load.close();
} catch (ServerException | IOException | InterruptedException ignore) {
log.warn("failed to close Load.", ignore);
}
}
if (tsurugiTransaction != null) {
tsurugiTransaction.close();
}
Expand Down

0 comments on commit 3970ccd

Please sign in to comment.