mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
Added check to determine if the DB connection has been closed. If yes, then get a new connection.
This commit is contained in:
parent
ca2a9ed8f1
commit
8936338059
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore {
|
||||||
|
|
||||||
private synchronized void maybeConnect() throws BlockStoreException {
|
private synchronized void maybeConnect() throws BlockStoreException {
|
||||||
try {
|
try {
|
||||||
if (conn.get() != null)
|
if (conn.get() != null && !conn.get().isClosed())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
|
|
Loading…
Add table
Reference in a new issue