From 3702b0c694a20e027bbf04fbdbf0fe359d125d06 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 15 Oct 2023 11:56:56 +0800 Subject: [PATCH] fix ci --- src/server/video_service.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/video_service.rs b/src/server/video_service.rs index 9acb5d541680..1dd793fc33ab 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -174,7 +174,7 @@ fn check_display_changed( #[cfg(target_os = "linux")] { // wayland do not support changing display for now - if !IS_X11.load(Ordering::SeqCst)() { + if !IS_X11.load(Ordering::SeqCst) { return false; } } @@ -355,7 +355,7 @@ fn get_capturer( ) -> ResultType { #[cfg(target_os = "linux")] { - if !IS_X11.load(Ordering::SeqCst)() { + if !IS_X11.load(Ordering::SeqCst) { return super::wayland::get_capturer(); } } @@ -609,7 +609,7 @@ fn run(vs: VideoService) -> ResultType<()> { #[cfg(target_os = "linux")] { would_block_count += 1; - if !IS_X11.load(Ordering::SeqCst)() { + if !IS_X11.load(Ordering::SeqCst) { if would_block_count >= 100 { // to-do: Unknown reason for WouldBlock 100 times (seconds = 100 * 1 / fps) // https://github.com/rustdesk/rustdesk/blob/63e6b2f8ab51743e77a151e2b7ff18816f5fa2fb/libs/scrap/src/common/wayland.rs#L81 @@ -797,7 +797,7 @@ fn handle_one_frame( pub fn is_inited_msg() -> Option { #[cfg(target_os = "linux")] - if !IS_X11.load(Ordering::SeqCst)() { + if !IS_X11.load(Ordering::SeqCst) { return super::wayland::is_inited(); } None