Browse Source

fix terminating server process

pull/1089/head
Jason Dove 4 years ago
parent
commit
648f25e9cc
  1. 5
      ErsatzTV-Windows/src/main.rs

5
ErsatzTV-Windows/src/main.rs

@ -94,7 +94,10 @@ fn main() { @@ -94,7 +94,10 @@ fn main() {
None => {}
Some(mut child) => {
unsafe {
Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0);
if Console::AttachConsole(child.id()) == true
{
Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0);
}
}
child.wait().unwrap();
}

Loading…
Cancel
Save