private void Terminate(string err) { CheckTimer.Stop(); EthMinerProcess.Close(); EthReader.Stop(); Error = err; Close(); }
virtual public void Stop() { if (ProcessHandle != null) { Helpers.ConsolePrint(MinerDeviceName, "Shutting down miner"); try { ProcessHandle.Kill(); } catch { } ProcessHandle.Close(); ProcessHandle = null; StartingUpDelay = false; PreviousTotalMH = 0.0; if (AlgoNameIs("daggerhashimoto")) { ER.Stop(); } else if (MinerDeviceName == "AMD_OpenCL") { KillSGMiner(); } } }