diff --git a/src/server/video_service.rs b/src/server/video_service.rs index db419fc65..d59c1cd5c 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -604,11 +604,13 @@ fn run(sp: GenericService) -> ResultType<()> { { would_block_count += 1; if !scrap::is_x11() { - if would_block_count >= 100 { + if would_block_count >= 1000 { // For now, the user should choose and agree screen sharing agiain. // to-do: Remember choice, attendless... - super::wayland::release_resouce(); - bail!("Wayland capturer none 100 times, try restart captuere"); + // super::wayland::release_resouce(); + // bail!("Wayland capturer none 100 times, try restart captuere"); + log::error!("Wayland capturer none 1000 times, try restart captuere"); + would_block_count = 0; } } }