FIX: remove not match printer config ota cache

Change-Id: Ib73fc2ea31fa2186061cfcb5a170bc59b9db84ca
Jira: none
This commit is contained in:
chunmao.guo 2023-11-28 10:59:07 +08:00 committed by Lane.Wei
parent 1d50e208b2
commit 1361357a41

View File

@ -1053,7 +1053,8 @@ void PresetUpdater::priv::sync_printer_config(std::string http_url)
} }
if (need_delete_cache) { if (need_delete_cache) {
std::string data_dir_str = data_dir(); boost::system::error_code ec;
boost::filesystem::remove_all(cache_folder, ec);
cached_version = curr_version; cached_version = curr_version;
} }
} }