From 6ce72f28d4e4c5a522a2e806dfc7bb20d7243cc8 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Tue, 5 May 2015 00:27:45 +0200 Subject: [PATCH] Deactivate error when connection to P2P network drops --- gui/src/main/java/io/bitsquare/gui/main/MainViewModel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/src/main/java/io/bitsquare/gui/main/MainViewModel.java b/gui/src/main/java/io/bitsquare/gui/main/MainViewModel.java index 277c5f0956..5ec5990f57 100644 --- a/gui/src/main/java/io/bitsquare/gui/main/MainViewModel.java +++ b/gui/src/main/java/io/bitsquare/gui/main/MainViewModel.java @@ -164,7 +164,8 @@ class MainViewModel implements ViewModel { clientNode.numPeersProperty().addListener((observable, oldValue, newValue) -> { numDHTPeers.set(String.valueOf(newValue) + " peers"); if ((int) newValue < 1) { - bootstrapErrorMsg.set("We lost connection to the last peer."); + // TODO swallow connection drops for a certain time. + // bootstrapErrorMsg.set("We lost connection to the last peer."); } }); @@ -358,7 +359,7 @@ class MainViewModel implements ViewModel { else if (value > 0.0) { // We stop as soon the download started the timeout stopBlockchainSyncTimeout(); - + blockchainSyncInfo.set("Synchronizing blockchain: " + formatter.formatToPercent(value)); blockchainSyncInfoFooter.set("Synchronizing: " + formatter.formatToPercent(value)); }