clear hwcodec config rather than remove

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-16 09:59:46 +08:00
parent 314d7f4387
commit ec34470284
2 changed files with 5 additions and 8 deletions

View File

@@ -332,9 +332,9 @@ pub fn check_config_process() {
use hbb_common::sysinfo::{ProcessExt, System, SystemExt};
std::thread::spawn(move || {
// Remove to avoid checking process errors
// Clear to avoid checking process errors
// But when the program is just started, the configuration file has not been updated, and the new connection will read an empty configuration
HwCodecConfig::remove();
HwCodecConfig::clear();
if let Ok(exe) = std::env::current_exe() {
if let Some(file_name) = exe.file_name().to_owned() {
let s = System::new_all();