Skip to content

Commit 6582295

Browse files
ids1024jackpot51
authored andcommitted
fix: Correct implementation of DaemonServer::exit
1 parent 369d059 commit 6582295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/daemon/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::{
1111
Read,
1212
Write,
1313
},
14-
process,
1514
str,
1615
time::Duration,
1716
};
@@ -250,6 +249,7 @@ impl<R: Read, W: Write> Daemon for DaemonServer<R, W> {
250249
}
251250

252251
fn exit(&mut self) -> Result<(), String> {
253-
process::exit(0);
252+
self.running = false;
253+
Ok(())
254254
}
255255
}

0 commit comments

Comments
 (0)