3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Close connections in PostgresFullPrunedBlockStore. same as: b6f61e8850

This commit is contained in:
freak 2014-07-22 11:51:19 -07:00 committed by Mike Hearn
parent cb0d052e08
commit b2efb0ddc2

View File

@ -222,6 +222,7 @@ public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore {
try { try {
if(!conn.getAutoCommit()) { if(!conn.getAutoCommit()) {
conn.rollback(); conn.rollback();
conn.close();
} }
} catch (SQLException ex) { } catch (SQLException ex) {
throw new RuntimeException(ex); throw new RuntimeException(ex);