Update common/src/main/java/bisq/common/persistence/PersistenceManager.java

Co-authored-by: sqrrm <sqrrm@users.noreply.github.com>
This commit is contained in:
chimp1984 2020-10-04 12:49:02 -05:00 committed by GitHub
parent 6693a03f96
commit a612405d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,8 +112,7 @@ public class PersistenceManager<T extends PersistableEnvelope> {
AtomicInteger openInstances,
PersistenceManager<?> persistenceManager) {
persistenceManager.shutdown();
openInstances.decrementAndGet();
if (openInstances.get() == 0) {
if (openInstances.decrementAndGet() == 0) {
log.info("flushAllDataToDisk completed");
UserThread.execute(completeHandler::handleResult);
}