No timeouts while downloading
This commit is contained in:
@@ -201,10 +201,12 @@ impl AppDelegate<AppData> for Delegate {
|
|||||||
"Downloading Town of Us... Please be patient! [{}]",
|
"Downloading Town of Us... Please be patient! [{}]",
|
||||||
ver_url.1.clone()
|
ver_url.1.clone()
|
||||||
);
|
);
|
||||||
let zip = reqwest::blocking::get(ver_url.1.clone())
|
let client = reqwest::blocking::Client::builder()
|
||||||
.unwrap()
|
.timeout(None)
|
||||||
.bytes()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
let zip_request = client.get(ver_url.1.clone()).build().unwrap();
|
||||||
|
let zip = client.execute(zip_request).unwrap().bytes().unwrap();
|
||||||
fs::write(download_path.clone(), zip).unwrap();
|
fs::write(download_path.clone(), zip).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user