only windows no prelogin check cm exit

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-11-12 22:09:41 +08:00
parent 45dbea57f1
commit 52e5d519ab

View File

@ -1484,7 +1484,10 @@ impl Connection {
.await
{
log::error!("ipc to connection manager exit: {}", err);
allow_err!(tx_from_cm_clone.send(Data::CmErr(err.to_string())));
#[cfg(windows)]
if !crate::platform::is_prelogin() {
allow_err!(tx_from_cm_clone.send(Data::CmErr(err.to_string())));
}
}
});
#[cfg(all(windows, feature = "flutter"))]