From 5d22a15ac2d10c4b0e5a8f2052cd75f82e558ea8 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 27 Jul 2023 23:24:33 +0200 Subject: [PATCH] Stop miners instantly when losing pool connection --- src/mining.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mining.cpp b/src/mining.cpp index 3aabdb8..3efd499 100644 --- a/src/mining.cpp +++ b/src/mining.cpp @@ -143,6 +143,8 @@ void runStratumWorker(void *name) { if(!isMinerSuscribed){ + //Stop miner current jobs + mMiner.inRun = false; mWorker = init_mining_subscribe(); // STEP 1: Pool server connection (SUBSCRIBE)