Skip to content

Commit

Permalink
Fix reversed logic on --exec-exit-on-disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Aug 30, 2023
1 parent 4e4da47 commit 734cc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process_peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl AsyncWrite for ProcessPeer {
impl Drop for ForgetfulProcess {
fn drop(&mut self) {
let mut chld = self.chld.take().unwrap();
if ! self.exit_on_disconnect {
if self.exit_on_disconnect {
debug!("Forcing child process to exit");
match chld.kill() {
Ok(()) => (),
Expand Down

0 comments on commit 734cc58

Please sign in to comment.