protected override void _Stop(MinerStopType willswitch) { Stop_cpu_ccminer_sgminer_nheqminer(willswitch); }
abstract protected void _Stop(MinerStopType willswitch);
protected override void _Stop(MinerStopType willswitch) { ShutdownMiner(); }
protected override void _Stop(MinerStopType willswitch) { IsRunning = false; _miner.StopMining(); }
protected override void _Stop(MinerStopType willswitch) { Stop_cpu_ccminer_sgminer_nheqminer(willswitch); // RunCMDBeforeMining("AMD", false); }
protected override void _Stop(MinerStopType willswitch) { // TODO fixes instant start/stop ShutdownMiner(false); }
protected override void _Stop(MinerStopType willswitch) { // prevent logging non runing miner if (IsRunning && !IsPaused && willswitch == MinerStopType.SWITCH) { // daggerhashimoto - we only "pause" mining IsPaused = true; Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Pausing ethminer.."); StopMining(); return; } else if ((IsRunning || IsPaused) && willswitch != MinerStopType.SWITCH) { Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner"); } if (willswitch == MinerStopType.END) ChangeToNextAvaliablePort(); if ((willswitch == MinerStopType.FORCE_END || willswitch == MinerStopType.END) && ProcessHandle != null) { IsPaused = false; // shutting down means it is not paused try { ProcessHandle.Kill(); } catch { } finally { ProcessHandle = null; } } }
protected override void _Stop(MinerStopType willswitch) { Helpers.ConsolePrint("XMRIG", "_Stop"); Stop_cpu_ccminer_sgminer_nheqminer(willswitch); }
protected abstract void _Stop(MinerStopType willswitch);
protected void Stop_cpu_ccminer_sgminer_nheqminer(MinerStopType willswitch) { if (IsRunning) { Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner"); } if (willswitch != MinerStopType.FORCE_END) ChangeToNextAvaliablePort(); if (ProcessHandle != null) { try { ProcessHandle.Kill(); } catch { } ProcessHandle.Close(); ProcessHandle = null; // sgminer needs to be removed and kill by PID if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses(); } }
public virtual void Stop(MinerStopType willswitch = MinerStopType.SWITCH) { if (_cooldownCheckTimer != null) _cooldownCheckTimer.Stop(); _Stop(willswitch); PreviousTotalMH = 0.0; IsRunning = false; }