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() {
None => {} None => {}
Some(mut child) => { Some(mut child) => {
unsafe { unsafe {
Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0); if Console::AttachConsole(child.id()) == true
{
Console::GenerateConsoleCtrlEvent(Console::CTRL_C_EVENT, 0);
}
} }
child.wait().unwrap(); child.wait().unwrap();
} }

Loading…
Cancel
Save