3
0
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:
eleetas 2014-10-13 15:56:25 -07:00
parent ca2a9ed8f1
commit 8936338059

View File

@ -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();