mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
console command interruption
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
1d1b1644e9
commit
a22524496d
2 files changed
+33
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user