add timeout to shutdown handler, change timout for btc network connection lost

This commit is contained in:
Manfred Karrer 2015-05-22 16:40:55 +02:00
parent a57f246a0c
commit a0e7a80bfc
4 changed files with 11 additions and 5 deletions

View file

@ -67,7 +67,7 @@ class MainViewModel implements ViewModel {
private static final long BLOCKCHAIN_SYNC_TIMEOUT = 60000;
private static final long LOST_P2P_CONNECTION_TIMEOUT = 5000;
private static final long LOST_BTC_CONNECTION_TIMEOUT = 2000;
private static final long LOST_BTC_CONNECTION_TIMEOUT = 5000;
private final User user;
private final KeyRing keyRing;

View file

@ -150,7 +150,7 @@ public class NetworkSettingsView extends InitializableView {
});
Action response = Popups.openConfirmPopup("Info", "You need to restart the application to apply the change of the Bitcoin network.",
"Do you want to shutdown now?", actions);
"Do you want to restart now?", actions);
if (Popups.isYes(response))
BitsquareApp.restartDownHandler.run();