Remove dev logs, remove unread property

This commit is contained in:
chimp1984 2020-08-27 16:50:45 -05:00
parent 21ff2df232
commit 0e8704e74f
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -121,7 +121,6 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
private final BooleanProperty preliminaryDataReceived = new SimpleBooleanProperty(); private final BooleanProperty preliminaryDataReceived = new SimpleBooleanProperty();
private final IntegerProperty numConnectedPeers = new SimpleIntegerProperty(0); private final IntegerProperty numConnectedPeers = new SimpleIntegerProperty(0);
private boolean shutDownComplete;
private final Subscription networkReadySubscription; private final Subscription networkReadySubscription;
private boolean isBootstrapped; private boolean isBootstrapped;
private final KeepAliveManager keepAliveManager; private final KeepAliveManager keepAliveManager;
@ -221,7 +220,6 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
} }
private void doShutDown() { private void doShutDown() {
log.error("doShutDown");
if (p2PDataStorage != null) { if (p2PDataStorage != null) {
p2PDataStorage.shutDown(); p2PDataStorage.shutDown();
} }
@ -249,11 +247,9 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
if (networkNode != null) { if (networkNode != null) {
networkNode.shutDown(() -> { networkNode.shutDown(() -> {
shutDownResultHandlers.forEach(Runnable::run); shutDownResultHandlers.forEach(Runnable::run);
shutDownComplete = true;
}); });
} else { } else {
shutDownResultHandlers.forEach(Runnable::run); shutDownResultHandlers.forEach(Runnable::run);
shutDownComplete = true;
} }
} }