fix lock screen for mac and linux

This commit is contained in:
rustdesk committed 2022-04-24 02:37:27 +08:00
1 parent 6bc0c3ce98
commit f42a77ad22
2 files changed
+35 -4

No files matched your search

+1 -2
View File
@@ -1071,8 +1071,7 @@ impl Connection {
}
log::info!("#{} Connection closed: {}", self.inner.id(), reason);
if lock && self.lock_after_session_end && self.keyboard {
crate::platform::lock_screen();
super::video_service::switch_to_primary();
lock_screen();
}
self.tx_to_cm.send(ipc::Data::Close).ok();
self.port_forward_socket.take();