Skip to content

Commit 6946945

Browse files
committed
Compatibility with new xmr-stak release.
1 parent bea5639 commit 6946945

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

xmr-stak-bootstrap/Runner.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,12 @@ private void RunMiner(string arguments)
120120
{
121121
var startInfo = new ProcessStartInfo(Path.GetFullPath("xmr-stak.exe"), arguments)
122122
{
123-
WorkingDirectory = Environment.CurrentDirectory,
124-
UseShellExecute = false
123+
WorkingDirectory = Environment.CurrentDirectory
125124
};
126125

127126
Console.WriteLine(@"Starting: xmr-stak.exe {0}", arguments);
128127

129-
ScheduleProcessKill(Process.Start(startInfo));
128+
Process.Start(startInfo);
130129
}
131130

132131
private string GetConfigurationArgument(MasterConfiguration configuration, List<PrioritizedPoolEntry> pools)
@@ -231,11 +230,5 @@ private static void KillProcess(int processId, Process process)
231230
Console.WriteLine(@"Cannot kill process {0}!", processId);
232231
}
233232
}
234-
235-
private void ScheduleProcessKill(Process process)
236-
{
237-
var proc = process.Id; //capture
238-
Finalizer.ScheduleFinalization(() => KillProcess(proc, process));
239-
}
240233
}
241234
}

0 commit comments

Comments
 (0)