Skip to content

Commit

Permalink
fix #21. close Load when job completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIRAKI-Takayoshi committed Dec 15, 2023
1 parent 23682a2 commit eab2149
Showing 1 changed file with 7 additions and 0 deletions.
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 eab2149

Please sign in to comment.