harden switch side

This commit is contained in:
rustdesk committed 2026-05-06 19:27:56 +08:00
1 parent d5d0b01266
commit f29dec7b13
8 files changed
+153 -14

No files matched your search

+1 -1
View File
@@ -464,7 +464,7 @@ pub fn has_active_clients() -> bool {
#[inline]
#[cfg(feature = "flutter")]
#[cfg(not(any(target_os = "ios")))]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn switch_back(id: i32) {
if let Some(client) = CLIENTS.read().unwrap().get(&id) {
allow_err!(client.tx.send(Data::SwitchSidesBack));