Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 6deec79

Browse files
committed
restore miner killing
1 parent 867d578 commit 6deec79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NiceHashMiner/Miners/Miner.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ protected void Stop_cpu_ccminer_sgminer_nheqminer(MinerStopType willswitch) {
277277
Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner");
278278
}
279279
if (ProcessHandle != null) {
280-
//try { ProcessHandle.Kill(); } catch { }
281-
try { ProcessHandle.SendCtrlC((uint)Process.GetCurrentProcess().Id); } catch { }
280+
try { ProcessHandle.Kill(); } catch { }
281+
//try { ProcessHandle.SendCtrlC((uint)Process.GetCurrentProcess().Id); } catch { }
282282
ProcessHandle.Close();
283283
ProcessHandle = null;
284284

285285
// sgminer needs to be removed and kill by PID
286-
//if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses();
286+
if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses();
287287
}
288288
}
289289

0 commit comments

Comments
 (0)