mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +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 {
|
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…
x
Reference in New Issue
Block a user