mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-09 13:07:21 -05:00
fix: improve Android release check networking and restore loading screen logo
This commit is contained in:
@@ -411,6 +411,9 @@ async fn download_and_extract_payload(app: tauri::AppHandle, window: WebviewWind
|
||||
.connect_timeout(std::time::Duration::from_secs(15))
|
||||
.timeout(std::time::Duration::from_secs(180))
|
||||
.redirect(reqwest::redirect::Policy::limited(10))
|
||||
.local_address(std::net::IpAddr::V4(std::net::Ipv4Addr::UNSPECIFIED))
|
||||
.http1_only()
|
||||
.pool_max_idle_per_host(0)
|
||||
.build()
|
||||
.map_err(|e| format!("Client error: {}", e))?;
|
||||
|
||||
@@ -460,8 +463,14 @@ async fn download_and_extract_payload(app: tauri::AppHandle, window: WebviewWind
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
android_log(&format!("Release check failed for {}: {}", endpoint, e));
|
||||
last_error = format!("{}", e);
|
||||
let mut detail = format!("{}", e);
|
||||
let mut src = StdError::source(&e);
|
||||
while let Some(s) = src {
|
||||
detail.push_str(&format!(" <- {}", s));
|
||||
src = s.source();
|
||||
}
|
||||
android_log(&format!("Release check failed for {}: {}", endpoint, detail));
|
||||
last_error = detail;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user