1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-24 07:16:10 +00:00

Remove threading from file write (#226)

This commit is contained in:
jugeeya 2021-08-16 09:35:11 -07:00 committed by GitHub
parent ae791b42b6
commit 6ffec53204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,7 +359,6 @@ pub unsafe fn write_menu() {
}
pub unsafe fn spawn_menu() {
std::thread::spawn(||{
let fname = "index.html";
let params = MENU.to_url_params();
let page_response = Webpage::new()
@ -380,5 +379,4 @@ pub unsafe fn spawn_menu() {
let menu_conf_path = "sd:/TrainingModpack/training_modpack_menu.conf";
std::fs::write(menu_conf_path, last_url)
.expect("Failed to write menu conf file");
});
}