From b2efb0ddc2ae4bdaa6dadfad0233cd0c8f5096ef Mon Sep 17 00:00:00 2001 From: freak Date: Tue, 22 Jul 2014 11:51:19 -0700 Subject: [PATCH] Close connections in PostgresFullPrunedBlockStore. same as: b6f61e8850acabb38618baa05b4ca2edd9391a65 --- .../com/google/bitcoin/store/PostgresFullPrunedBlockStore.java | 1 + 1 file changed, 1 insertion(+) 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);