Stop miners instantly when losing pool connection
This commit is contained in:
parent
2231ae949f
commit
5d22a15ac2
@ -143,6 +143,8 @@ void runStratumWorker(void *name) {
|
|||||||
|
|
||||||
if(!isMinerSuscribed){
|
if(!isMinerSuscribed){
|
||||||
|
|
||||||
|
//Stop miner current jobs
|
||||||
|
mMiner.inRun = false;
|
||||||
mWorker = init_mining_subscribe();
|
mWorker = init_mining_subscribe();
|
||||||
|
|
||||||
// STEP 1: Pool server connection (SUBSCRIBE)
|
// STEP 1: Pool server connection (SUBSCRIBE)
|
||||||
|
Loading…
Reference in New Issue
Block a user