Stop() public method

Stop listening. Call this before application exits or if you are about to restart ethminer reader.
public Stop ( ) : void
return void
Exemplo n.º 1
0
 private void Terminate(string err)
 {
     CheckTimer.Stop();
     EthMinerProcess.Close();
     EthReader.Stop();
     Error = err;
     Close();
 }
Exemplo n.º 2
0
        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();
                }
            }
        }