mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 01:31:26 +03:00
10
src/ipc.rs
10
src/ipc.rs
@@ -186,10 +186,7 @@ pub enum Data {
|
||||
},
|
||||
SystemInfo(Option<String>),
|
||||
ClickTime(i64),
|
||||
#[cfg(all(
|
||||
not(any(target_os = "android", target_os = "ios")),
|
||||
feature = "flutter"
|
||||
))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
MouseMoveTime(i64),
|
||||
Authorize,
|
||||
Close,
|
||||
@@ -336,10 +333,7 @@ async fn handle(data: Data, stream: &mut Connection) {
|
||||
let t = crate::server::CLICK_TIME.load(Ordering::SeqCst);
|
||||
allow_err!(stream.send(&Data::ClickTime(t)).await);
|
||||
}
|
||||
#[cfg(all(
|
||||
not(any(target_os = "android", target_os = "ios")),
|
||||
feature = "flutter"
|
||||
))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
Data::MouseMoveTime(_) => {
|
||||
let t = crate::server::MOUSE_MOVE_TIME.load(Ordering::SeqCst);
|
||||
allow_err!(stream.send(&Data::MouseMoveTime(t)).await);
|
||||
|
||||
Reference in New Issue
Block a user