mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-03 03:19:27 +08:00
fix build
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
72cfea9202
commit
e6c3c55b39
@ -685,7 +685,7 @@ pub fn main_get_connect_status() -> String {
|
|||||||
}
|
}
|
||||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||||
{
|
{
|
||||||
let mut state = get_online_statue();
|
let mut state = hbb_common::config::get_online_statue();
|
||||||
if state > 0 {
|
if state > 0 {
|
||||||
state = 1;
|
state = 1;
|
||||||
}
|
}
|
||||||
|
10
src/ipc.rs
10
src/ipc.rs
@ -186,10 +186,7 @@ pub enum Data {
|
|||||||
},
|
},
|
||||||
SystemInfo(Option<String>),
|
SystemInfo(Option<String>),
|
||||||
ClickTime(i64),
|
ClickTime(i64),
|
||||||
#[cfg(all(
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
not(any(target_os = "android", target_os = "ios")),
|
|
||||||
feature = "flutter"
|
|
||||||
))]
|
|
||||||
MouseMoveTime(i64),
|
MouseMoveTime(i64),
|
||||||
Authorize,
|
Authorize,
|
||||||
Close,
|
Close,
|
||||||
@ -336,10 +333,7 @@ async fn handle(data: Data, stream: &mut Connection) {
|
|||||||
let t = crate::server::CLICK_TIME.load(Ordering::SeqCst);
|
let t = crate::server::CLICK_TIME.load(Ordering::SeqCst);
|
||||||
allow_err!(stream.send(&Data::ClickTime(t)).await);
|
allow_err!(stream.send(&Data::ClickTime(t)).await);
|
||||||
}
|
}
|
||||||
#[cfg(all(
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
not(any(target_os = "android", target_os = "ios")),
|
|
||||||
feature = "flutter"
|
|
||||||
))]
|
|
||||||
Data::MouseMoveTime(_) => {
|
Data::MouseMoveTime(_) => {
|
||||||
let t = crate::server::MOUSE_MOVE_TIME.load(Ordering::SeqCst);
|
let t = crate::server::MOUSE_MOVE_TIME.load(Ordering::SeqCst);
|
||||||
allow_err!(stream.send(&Data::MouseMoveTime(t)).await);
|
allow_err!(stream.send(&Data::MouseMoveTime(t)).await);
|
||||||
|
Loading…
Reference in New Issue
Block a user