Skip to content

Commit

Permalink
fix(iroh): do not exit on ctrl+c
Browse files Browse the repository at this point in the history
Closes #1690
  • Loading branch information
dignifiedquire committed Oct 20, 2023
1 parent 8dd0509 commit f7ba6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iroh/src/commands/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl Repl {
Some(ReplCmd::Rpc(cmd)) => self.cmd_tx.blocking_send((cmd, reply_tx))?,
}
}
Err(ReadlineError::Interrupted | ReadlineError::Eof) => break,
Err(ReadlineError::WindowResized) => continue,
Err(ReadlineError::Eof) => break,
Err(ReadlineError::Interrupted | ReadlineError::WindowResized) => continue,
Err(err) => return Err(err.into()),
}
// wait for reply from main thread
Expand Down

0 comments on commit f7ba6b7

Please sign in to comment.