correctly handle listener add fail

This commit is contained in:
sijie.sun
2024-05-11 22:49:48 +08:00
committed by Sijie.Sun
parent 1b1d76de99
commit 29d8d4ba87
3 changed files with 16 additions and 3 deletions

View File

@@ -374,6 +374,13 @@ pub async fn async_main(cli: Cli) {
));
}
GlobalCtxEvent::ListenerAddFailed(p, msg) => {
print_event(format!(
"listener add failed. listener: {}, msg: {}",
p, msg
));
}
GlobalCtxEvent::ListenerAdded(p) => {
if p.scheme() == "ring" {
continue;