console command interruption

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-06-16 08:02:14 +00:00
1 parent 1d1b1644e9
commit a22524496d
2 files changed
+33 -17

No files matched your search

+1
View File
@@ -147,6 +147,7 @@ impl Service {
async fn handle_signal(&self, #[allow(unused_variables)] sig: &'static str) {
#[cfg(feature = "console")]
if sig == "SIGINT" && services().server.running() {
self.console.interrupt();
self.console.start().await;
}
}