ensure proper shutdown
This commit is contained in:
parent
77682d9ab5
commit
831a02b9c0
1 changed files with 4 additions and 4 deletions
|
|
@ -567,11 +567,11 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) {
|
||||||
}
|
}
|
||||||
AppInstruction::Error(backtrace) => {
|
AppInstruction::Error(backtrace) => {
|
||||||
let _ = send_server_instructions.send(ServerInstruction::Quit);
|
let _ = send_server_instructions.send(ServerInstruction::Quit);
|
||||||
//let _ = ipc_thread.join();
|
|
||||||
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
||||||
let _ = screen_thread.join();
|
|
||||||
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
||||||
|
let _ = screen_thread.join();
|
||||||
let _ = wasm_thread.join();
|
let _ = wasm_thread.join();
|
||||||
|
let _ = ipc_thread.join();
|
||||||
os_input.unset_raw_mode(0);
|
os_input.unset_raw_mode(0);
|
||||||
let goto_start_of_last_line = format!("\u{1b}[{};{}H", full_screen_ws.rows, 1);
|
let goto_start_of_last_line = format!("\u{1b}[{};{}H", full_screen_ws.rows, 1);
|
||||||
let error = format!("{}\n{}", goto_start_of_last_line, backtrace);
|
let error = format!("{}\n{}", goto_start_of_last_line, backtrace);
|
||||||
|
|
@ -594,11 +594,11 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs, config: Config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let _ = send_server_instructions.send(ServerInstruction::Quit);
|
let _ = send_server_instructions.send(ServerInstruction::Quit);
|
||||||
//let _ = ipc_thread.join().unwrap();
|
|
||||||
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
let _ = send_screen_instructions.send(ScreenInstruction::Quit);
|
||||||
screen_thread.join().unwrap();
|
|
||||||
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
let _ = send_plugin_instructions.send(PluginInstruction::Quit);
|
||||||
|
screen_thread.join().unwrap();
|
||||||
wasm_thread.join().unwrap();
|
wasm_thread.join().unwrap();
|
||||||
|
ipc_thread.join().unwrap();
|
||||||
|
|
||||||
// cleanup();
|
// cleanup();
|
||||||
let reset_style = "\u{1b}[m";
|
let reset_style = "\u{1b}[m";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue