mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 12:21:29 +03:00
fix, windows try kill flutter main window process only when --server's ipc is (#8086)
occupied Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -470,6 +470,11 @@ pub async fn start_server(is_server: bool) {
|
||||
std::thread::spawn(move || {
|
||||
if let Err(err) = crate::ipc::start("") {
|
||||
log::error!("Failed to start ipc: {}", err);
|
||||
#[cfg(all(windows, feature = "flutter"))]
|
||||
if crate::is_server() && crate::ipc::test_ipc_connection().is_ok() {
|
||||
log::error!("ipc is occupied by another process, try kill it");
|
||||
crate::platform::try_kill_flutter_main_window_process();
|
||||
}
|
||||
std::process::exit(-1);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user