public void Stop() { if (Miner != null && Miner.IsRunning) { Miner.Stop(MinerStopType.SWITCH); // wait before going on System.Threading.Thread.Sleep(ConfigManager.GeneralConfig.MinerRestartDelayMS); } CurrentRate = 0; }