NiceHashMiner.EthminerReader.Stop C# (CSharp) Method

Stop() public method

Stop listening. Call this before application exits or if you are about to restart ethminer reader.
public Stop ( ) : void
return void
        public void Stop()
        {
            isRunning = false;
            speed = 0;
            DAGprogress = 0;
            workerTimer.Stop();
            client.Close();
            client = null;
        }

Usage Example

Esempio n. 1
0
 private void Terminate(string err)
 {
     CheckTimer.Stop();
     EthMinerProcess.Close();
     EthReader.Stop();
     Error = err;
     Close();
 }
All Usage Examples Of NiceHashMiner.EthminerReader::Stop