diff --git a/core/src/main/java/com/google/bitcoin/store/PostgresFullPrunedBlockStore.java b/core/src/main/java/com/google/bitcoin/store/PostgresFullPrunedBlockStore.java index 2d758283..c3cd0a76 100644 --- a/core/src/main/java/com/google/bitcoin/store/PostgresFullPrunedBlockStore.java +++ b/core/src/main/java/com/google/bitcoin/store/PostgresFullPrunedBlockStore.java @@ -222,6 +222,7 @@ public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore { try { if(!conn.getAutoCommit()) { conn.rollback(); + conn.close(); } } catch (SQLException ex) { throw new RuntimeException(ex);