Skip to content

Commit

Permalink
Add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Apr 4, 2024
1 parent c00d297 commit a973abb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ async fn run(session: NeovimSession, proxy: EventLoopProxy<UserEvent>) {
if let Some(process) = session.neovim_process.as_mut() {
let neovim_exited = select! {
_ = &mut session.io_handle => false,
_ = process.wait() => true,
_ = process.wait() => {
log::info!("The Neovim process quit before the IO stream, waiting two seconds");
true
}
};

// We primarily wait for the stdio to finish, but due to bugs,
Expand All @@ -272,7 +275,9 @@ async fn run(session: NeovimSession, proxy: EventLoopProxy<UserEvent>) {
tokio::pin!(sleep);
select! {
_ = session.io_handle => {}
_ = &mut sleep => {}
_ = &mut sleep => {
log::info!("The IO stream was never closed, forcing Neovide to exit");
}
}
}
} else {
Expand Down

0 comments on commit a973abb

Please sign in to comment.