mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Make Service.interrupt async
This commit is contained in:
1 parent
3a1649bcaf
commit
f51a7b12b5
5 files changed
+8
-8
No files matched your search
@@ -100,13 +100,13 @@ impl crate::Service for Service {
|
||||
}
|
||||
|
||||
//TODO: not unwind safe
|
||||
self.interrupt();
|
||||
self.interrupt().await;
|
||||
self.console_auto_stop().await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn interrupt(&self) {
|
||||
async fn interrupt(&self) {
|
||||
#[cfg(feature = "console")]
|
||||
self.console.interrupt();
|
||||
|
||||
|
||||
Reference in new issue
Block a user