Stop miners instantly when losing pool connection

This commit is contained in:
Stefan Berger 2023-07-27 23:24:33 +02:00
parent d5ac9addfe
commit df99eea69d

View File

@ -141,6 +141,8 @@ void runStratumWorker(void *name) {
if(!isMinerSuscribed){
//Stop miner current jobs
mMiner.inRun = false;
mWorker = init_mining_subscribe();
// STEP 1: Pool server connection (SUBSCRIBE)