From 56c451bfb82459c80f5e6bcfb626e1448f61c895 Mon Sep 17 00:00:00 2001 From: fufesou Date: Tue, 23 May 2023 10:46:34 +0800 Subject: [PATCH] wayland, comment out reseting capturer for now Signed-off-by: fufesou --- src/server/video_service.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/server/video_service.rs b/src/server/video_service.rs index d8e69ab13..22ad83001 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -725,8 +725,14 @@ fn run(sp: GenericService) -> ResultType<()> { would_block_count += 1; if !scrap::is_x11() { if would_block_count >= 100 { - super::wayland::release_resource(); - bail!("Wayland capturer none 100 times, try restart capture"); + // 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 + // + // Do not reset the capturer for now, as it will cause the prompt to show every few minutes. + // https://github.com/rustdesk/rustdesk/issues/4276 + // + // super::wayland::release_resource(); + // bail!("Wayland capturer none 100 times, try restart capture"); } } }