forked from Public/monero-gui
DaemonManager: reset disconnectedEpoch on start, start timeout 60s
This commit is contained in:
2
main.qml
2
main.qml
@@ -700,6 +700,7 @@ ApplicationWindow {
|
|||||||
// resume refresh
|
// resume refresh
|
||||||
currentWallet.startRefresh();
|
currentWallet.startRefresh();
|
||||||
// resume simplemode connection timer
|
// resume simplemode connection timer
|
||||||
|
appWindow.disconnectedEpoch = Utils.epoch();
|
||||||
simpleModeConnectionTimer.start();
|
simpleModeConnectionTimer.start();
|
||||||
}
|
}
|
||||||
function onDaemonStopped(){
|
function onDaemonStopped(){
|
||||||
@@ -1855,7 +1856,6 @@ ApplicationWindow {
|
|||||||
appWindow.stopDaemon();
|
appWindow.stopDaemon();
|
||||||
}
|
}
|
||||||
appWindow.startDaemon("");
|
appWindow.startDaemon("");
|
||||||
appWindow.disconnectedEpoch = Utils.epoch();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static const int DAEMON_START_TIMEOUT_SECONDS = 30;
|
static const int DAEMON_START_TIMEOUT_SECONDS = 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
DaemonManager * DaemonManager::m_instance = nullptr;
|
DaemonManager * DaemonManager::m_instance = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user