mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-17 08:57:23 -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))
|
.connect_timeout(std::time::Duration::from_secs(15))
|
||||||
.timeout(std::time::Duration::from_secs(180))
|
.timeout(std::time::Duration::from_secs(180))
|
||||||
.redirect(reqwest::redirect::Policy::limited(10))
|
.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()
|
.build()
|
||||||
.map_err(|e| format!("Client error: {}", e))?;
|
.map_err(|e| format!("Client error: {}", e))?;
|
||||||
|
|
||||||
@@ -460,8 +463,14 @@ async fn download_and_extract_payload(app: tauri::AppHandle, window: WebviewWind
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
android_log(&format!("Release check failed for {}: {}", endpoint, e));
|
let mut detail = format!("{}", e);
|
||||||
last_error = 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