add ctrl-\ quit support to admin console
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
04e3de08eb
commit
8350aced39
3 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue