fix sync request lead to question.

This commit is contained in:
alves
2026-02-11 16:30:36 +08:00
parent 7c2ec32330
commit cc36dc0295
2 changed files with 4 additions and 4 deletions

View File

@@ -4893,7 +4893,7 @@ void GUI_App::check_new_version_sf(bool show_tips, bool by_user)
BOOST_LOG_TRIVIAL(fatal) << "request server soft update data error:" << errorMsg; BOOST_LOG_TRIVIAL(fatal) << "request server soft update data error:" << errorMsg;
} }
}) })
.perform_sync(); .perform();
} }
void GUI_App::process_network_msg(std::string dev_id, std::string msg) void GUI_App::process_network_msg(std::string dev_id, std::string msg)
{ {

View File

@@ -710,7 +710,7 @@ bool PresetUpdater::priv::download_file(const std::string& url,
res = true; res = true;
}) })
.timeout_max(timeout_sec) .timeout_max(timeout_sec)
.perform_sync(); .perform();
if (fs::exists(tmp_path)) { if (fs::exists(tmp_path)) {
fs::remove(tmp_path); fs::remove(tmp_path);
@@ -835,7 +835,7 @@ void PresetUpdater::priv::sync_update_flutter_resource(bool isAuto_check)
BOOST_LOG_TRIVIAL(fatal) << "request server flutter update data error:" << errorMsg; BOOST_LOG_TRIVIAL(fatal) << "request server flutter update data error:" << errorMsg;
} }
}) })
.perform_sync(); .perform();
} }
// Orca: sync config update for currect App version // Orca: sync config update for currect App version
void PresetUpdater::priv::sync_config(bool isAuto_check) void PresetUpdater::priv::sync_config(bool isAuto_check)
@@ -954,7 +954,7 @@ void PresetUpdater::priv::sync_config(bool isAuto_check)
BOOST_LOG_TRIVIAL(fatal) << "request server preset update data error:" << errorMsg; BOOST_LOG_TRIVIAL(fatal) << "request server preset update data error:" << errorMsg;
} }
}) })
.perform_sync(); .perform();
} }
void PresetUpdater::priv::sync_tooltip(std::string http_url, std::string language) void PresetUpdater::priv::sync_tooltip(std::string http_url, std::string language)