aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-10-09 02:02:58 +0000
committerxiphon <xiphon@protonmail.com>2019-10-09 02:02:58 +0000
commit965081c5542ea52c062435b14fd408df4c845733 (patch)
treee0a54cc66a7fdefc098e2c941daafc2f86b97eb8
parente6458b58ef34a74aa45d48d54ac7b659a2400c8c (diff)
downloadmonzero-gui-965081c5542ea52c062435b14fd408df4c845733.tar.gz
monzero-gui-965081c5542ea52c062435b14fd408df4c845733.tar.xz
monzero-gui-965081c5542ea52c062435b14fd408df4c845733.zip
DaemonManager: reset disconnectedEpoch on start, start timeout 60s
-rw-r--r--main.qml2
-rw-r--r--src/daemon/DaemonManager.cpp2
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 <QMap>
namespace {
- static const int DAEMON_START_TIMEOUT_SECONDS = 30;
+ static const int DAEMON_START_TIMEOUT_SECONDS = 60;
}
DaemonManager * DaemonManager::m_instance = nullptr;