fix: change error handling in patch_profiles_config to return false when a switch is in progress

This commit is contained in:
Tunglies
2025-11-04 12:13:18 +08:00
Unverified
parent 97769cf93a
commit 39fab9404f

View File

@@ -385,7 +385,7 @@ pub async fn patch_profiles_config(profiles: IProfiles) -> CmdResult<bool> {
.is_err()
{
logging!(info, Type::Cmd, "当前正在切换配置,放弃请求");
return Err("switch_in_progress".into());
return Ok(false);
}
defer! {