0

Resolved

timeout parameter needed in dwarfconfig

description

would be great to set a timeout parameter for each dwarf....
 
here is the code to kill the dwarfs :)
 
//if dwarf.foo.bar is already running, kill it.
Process[] RunningProcesses = Process.GetProcesses();
for (int i = 0; i < RunningProcesses.Length; ++i)
{
if (RunningProcesses[i].ProcessName.Contains("dwarf"))
{
try
{
RunningProcesses[i].Kill();
}
catch
{
}
}
}

comments