mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-10 08:08:09 +03:00
harden switch side
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user