From 757bc7d7b953ca997aaa2897d79ddd4c37caa45a Mon Sep 17 00:00:00 2001 From: devhyper <57877914+devhyper@users.noreply.github.com> Date: Tue, 31 Jan 2023 18:23:20 -0800 Subject: p2pool: Restart monerod only when needed and with proper args --- main.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.qml') diff --git a/main.qml b/main.qml index b1e58663..390a9dfb 100644 --- a/main.qml +++ b/main.qml @@ -748,6 +748,12 @@ ApplicationWindow { currentWallet.startRefresh(); informationPopup.title = qsTr("Daemon failed to start") + translationManager.emptyString; informationPopup.text = error + ".\n\n" + qsTr("Please check your wallet and daemon log for errors. You can also try to start %1 manually.").arg((isWindows)? "monerod.exe" : "monerod") + if (middlePanel.advancedView.miningView.stopMiningEnabled == true) { + walletManager.stopMining() + p2poolManager.exit() + middlePanel.advancedView.miningView.update() + informationPopup.text += qsTr("\n\nExiting p2pool. Please check that port 18083 is available.") + translationManager.emptyString; + } informationPopup.icon = StandardIcon.Critical informationPopup.onCloseCallback = null informationPopup.open(); -- cgit v1.2.3