Skip to content

Commit

Permalink
clean up resource handling
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 15, 2019
1 parent 52df866 commit 2ba72e5
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -108,6 +108,12 @@ public void close() throws SecurityException {
try {
writer.close();
writer = null;
} catch (Exception e) {
reportError(null, e, ErrorManager.CLOSE_FAILURE);
}
}
if (executor != null) {
try {
executor.shutdown();
} catch (Exception e) {
reportError(null, e, ErrorManager.CLOSE_FAILURE);
Expand Down

0 comments on commit 2ba72e5

Please sign in to comment.