mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
windows kill flutter main window when --server close (#8077)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -356,6 +356,8 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
crate::server::input_service::fix_key_down_timeout_at_exit();
|
||||
if is_server() {
|
||||
let _ = privacy_mode::turn_off_privacy(0, Some(PrivacyModeState::OffByPeer));
|
||||
#[cfg(all(windows, feature = "flutter"))]
|
||||
crate::platform::kill_flutter_main_window();
|
||||
}
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user