Merge pull request #4450 from fufesou/refact/wayland_do_not_reset_capturer

wayland, comment out reseting capturer for now
This commit is contained in:
RustDesk 2023-05-23 10:49:52 +08:00 committed by GitHub
commit fb1207eee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,8 +725,14 @@ fn run(sp: GenericService) -> ResultType<()> {
would_block_count += 1; would_block_count += 1;
if !scrap::is_x11() { if !scrap::is_x11() {
if would_block_count >= 100 { if would_block_count >= 100 {
super::wayland::release_resource(); // to-do: Unknown reason for WouldBlock 100 times (seconds = 100 * 1 / fps)
bail!("Wayland capturer none 100 times, try restart capture"); // 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");
} }
} }
} }