aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authordevhyper <57877914+devhyper@users.noreply.github.com>2023-02-02 17:32:06 -0800
committerdevhyper <57877914+devhyper@users.noreply.github.com>2023-02-02 17:32:06 -0800
commit587ea68a99da5a795ee78f6d20e6f3672b1c5922 (patch)
tree5059a162b7756c73ced2674defe63c024d94883a /main.qml
parentb7ba9437d8cca6df4ecff7f5ae38a53cac5e26b2 (diff)
downloadmonzero-gui-587ea68a99da5a795ee78f6d20e6f3672b1c5922.tar.gz
monzero-gui-587ea68a99da5a795ee78f6d20e6f3672b1c5922.tar.xz
monzero-gui-587ea68a99da5a795ee78f6d20e6f3672b1c5922.zip
p2pool: Stop p2pool mining on node switch
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.qml b/main.qml
index b1e58663..7b8eb06e 100644
--- a/main.qml
+++ b/main.qml
@@ -602,6 +602,9 @@ ApplicationWindow {
function connectRemoteNode() {
console.log("connecting remote node");
+ p2poolManager.exit();
+ p2poolManager.getStatus();
+
const callback = function() {
persistentSettings.useRemoteNode = true;
const remoteNode = remoteNodesModel.currentRemoteNode();
@@ -630,6 +633,10 @@ ApplicationWindow {
return;
console.log("disconnecting remote node");
+
+ p2poolManager.exit();
+ p2poolManager.getStatus();
+
persistentSettings.useRemoteNode = false;
currentDaemonAddress = localDaemonAddress
currentWallet.setDaemonLogin("", "");