File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,12 @@ private void RunMiner(string arguments)
120
120
{
121
121
var startInfo = new ProcessStartInfo ( Path . GetFullPath ( "xmr-stak.exe" ) , arguments )
122
122
{
123
- WorkingDirectory = Environment . CurrentDirectory ,
124
- UseShellExecute = false
123
+ WorkingDirectory = Environment . CurrentDirectory
125
124
} ;
126
125
127
126
Console . WriteLine ( @"Starting: xmr-stak.exe {0}" , arguments ) ;
128
127
129
- ScheduleProcessKill ( Process . Start ( startInfo ) ) ;
128
+ Process . Start ( startInfo ) ;
130
129
}
131
130
132
131
private string GetConfigurationArgument ( MasterConfiguration configuration , List < PrioritizedPoolEntry > pools )
@@ -231,11 +230,5 @@ private static void KillProcess(int processId, Process process)
231
230
Console . WriteLine ( @"Cannot kill process {0}!" , processId ) ;
232
231
}
233
232
}
234
-
235
- private void ScheduleProcessKill ( Process process )
236
- {
237
- var proc = process . Id ; //capture
238
- Finalizer . ScheduleFinalization ( ( ) => KillProcess ( proc , process ) ) ;
239
- }
240
233
}
241
234
}
You can’t perform that action at this time.
0 commit comments