forgor is_err check too
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ebc59e6f15
commit
93c3e6dec8
1 changed files with 1 additions and 6 deletions
|
@ -151,12 +151,7 @@ pub(crate) async fn get_alias_helper(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) {
|
if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) || response.as_ref().is_err() {
|
||||||
debug_warn!(
|
|
||||||
"Server {} responded with room aliases, but was empty? Response: {response:?}",
|
|
||||||
room_alias.server_name()
|
|
||||||
);
|
|
||||||
|
|
||||||
if let Some(servers) = servers {
|
if let Some(servers) = servers {
|
||||||
for server in servers {
|
for server in servers {
|
||||||
response = services()
|
response = services()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue