not close connection if failed to start cm due to no explorer.exe (#8290)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-06-08 16:11:51 +08:00
committed by GitHub
parent 0bb537b872
commit 8de5f3f0d3
2 changed files with 30 additions and 1 deletions

View File

@@ -1595,7 +1595,9 @@ impl Connection {
{
log::error!("ipc to connection manager exit: {}", err);
#[cfg(windows)]
if !crate::platform::is_prelogin() {
if !crate::platform::is_prelogin()
&& !err.to_string().contains(crate::platform::EXPLORER_EXE)
{
allow_err!(tx_from_cm_clone.send(Data::CmErr(err.to_string())));
}
}