mirror of
https://github.com/Bluemangoo/sekai-unpacker.git
synced 2026-09-20 00:06:52 +08:00
do not retry on region not found
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::config::{ClientConfig, Profile};
|
||||
use crate::task::run;
|
||||
use common::strings::REGION_NOT_FOUND;
|
||||
use communicator::{ClientManager, Identity, TunnelEndpoint, TunnelListener, connect_tunnel};
|
||||
use lazy_static::lazy_static;
|
||||
use log::{LevelFilter, error, info};
|
||||
@@ -179,6 +180,9 @@ async fn main() -> anyhow::Result<()> {
|
||||
.await;
|
||||
}
|
||||
Err(error) => {
|
||||
if error.to_string().contains(REGION_NOT_FOUND) {
|
||||
return;
|
||||
}
|
||||
error!("{}", error);
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user