mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-08 08:46:12 +00:00
fix lock screen for mac and linux
This commit is contained in:
1 parent
6bc0c3ce98
commit
f42a77ad22
2 files changed
+35
-4
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user