From 965081c5542ea52c062435b14fd408df4c845733 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 9 Oct 2019 02:02:58 +0000 Subject: [PATCH] DaemonManager: reset disconnectedEpoch on start, start timeout 60s --- main.qml | 2 +- src/daemon/DaemonManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.qml b/main.qml index 74e86a0c..8bfc21b6 100644 --- a/main.qml +++ b/main.qml @@ -700,6 +700,7 @@ ApplicationWindow { // resume refresh currentWallet.startRefresh(); // resume simplemode connection timer + appWindow.disconnectedEpoch = Utils.epoch(); simpleModeConnectionTimer.start(); } function onDaemonStopped(){ @@ -1855,7 +1856,6 @@ ApplicationWindow { appWindow.stopDaemon(); } appWindow.startDaemon(""); - appWindow.disconnectedEpoch = Utils.epoch(); } Timer { diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 0d311535..6102c785 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -43,7 +43,7 @@ #include namespace { - static const int DAEMON_START_TIMEOUT_SECONDS = 30; + static const int DAEMON_START_TIMEOUT_SECONDS = 60; } DaemonManager * DaemonManager::m_instance = nullptr;