From 3ea8c82ef0c142bbf123337a831c426ac2a6530f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 8 Jul 2025 12:46:14 +0000 Subject: [PATCH] Follow-up to admin channel change (7d2d42542c). Signed-off-by: Jason Volk --- src/service/admin/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/service/admin/mod.rs b/src/service/admin/mod.rs index c30f4566..58031cd6 100644 --- a/src/service/admin/mod.rs +++ b/src/service/admin/mod.rs @@ -44,7 +44,7 @@ struct Services { } /// Inputs to a command are a multi-line string and optional reply_id. -#[derive(Debug)] +#[derive(Clone, Debug, Default)] pub struct CommandInput { pub command: String, pub reply_id: Option, @@ -122,7 +122,9 @@ impl crate::Service for Service { } } - self.console_auto_stop().await; //TODO: not unwind safe + //TODO: not unwind safe + self.interrupt(); + self.console_auto_stop().await; Ok(()) }