mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00: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
@ -195,7 +195,7 @@ public class PostgresFullPrunedBlockStore implements FullPrunedBlockStore {
|
||||
|
||||
private synchronized void maybeConnect() throws BlockStoreException {
|
||||
try {
|
||||
if (conn.get() != null)
|
||||
if (conn.get() != null && !conn.get().isClosed())
|
||||
return;
|
||||
|
||||
Properties props = new Properties();
|
||||
|
Loading…
Reference in New Issue
Block a user