add ctrl-\ quit support to admin console
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -97,6 +97,7 @@ impl Console {
|
||||
ReadlineEvent::Line(string) => self.clone().handle(string).await,
|
||||
ReadlineEvent::Interrupted => continue,
|
||||
ReadlineEvent::Eof => break,
|
||||
ReadlineEvent::Quit => services().server.shutdown().unwrap_or_else(error::log),
|
||||
},
|
||||
Err(error) => match error {
|
||||
ReadlineError::Closed => break,
|
||||
|
||||
Reference in New Issue
Block a user