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

Commit

Permalink
restore miner killing
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Jun 6, 2017
1 parent 867d578 commit 6deec79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NiceHashMiner/Miners/Miner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ protected void Stop_cpu_ccminer_sgminer_nheqminer(MinerStopType willswitch) {
Helpers.ConsolePrint(MinerTAG(), ProcessTag() + " Shutting down miner");
}
if (ProcessHandle != null) {
//try { ProcessHandle.Kill(); } catch { }
try { ProcessHandle.SendCtrlC((uint)Process.GetCurrentProcess().Id); } catch { }
try { ProcessHandle.Kill(); } catch { }
//try { ProcessHandle.SendCtrlC((uint)Process.GetCurrentProcess().Id); } catch { }
ProcessHandle.Close();
ProcessHandle = null;

// sgminer needs to be removed and kill by PID
//if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses();
if (IsKillAllUsedMinerProcs) KillAllUsedMinerProcesses();
}
}

Expand Down

2 comments on commit 6deec79

@augustresende
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, merge my Pull Request pls

@008
Copy link

@008 008 commented on 6deec79 Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.