Stop miners instantly when losing pool connection

This commit is contained in:
Stefan Berger 2023-07-27 23:24:33 +02:00
parent 2231ae949f
commit 5d22a15ac2

View File

@ -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)