Skip to content
Snippets Groups Projects
Commit 5870590d authored by ivan's avatar ivan
Browse files

modified cleanup

parent 477bb3ab
No related branches found
No related tags found
No related merge requests found
......@@ -72,11 +72,14 @@ public class S3Client extends DB {
*/
@Override
public void cleanup() throws DBException {
try {
this.s3Client.shutdown(); //this should not be used
//this.s3Client = null;
} catch (Exception e){
e.printStackTrace();
if(this.s3Client != null){
try {
this.s3Client.shutdown();
} catch (Exception e){
e.printStackTrace();
} finally {
this.s3Client = null;
}
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment