mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-17 10:11:01 +03:00
feat: mobile map mode (#9717)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -222,6 +222,10 @@ pub fn session_get_enable_trusted_devices(session_id: SessionID) -> SyncReturn<b
|
||||
|
||||
pub fn session_close(session_id: SessionID) {
|
||||
if let Some(session) = sessions::remove_session_by_session_id(&session_id) {
|
||||
// `release_remote_keys` is not required for mobile platforms in common cases.
|
||||
// But we still call it to make the code more stable.
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
crate::keyboard::release_remote_keys("map");
|
||||
session.close_event_stream(session_id);
|
||||
session.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user