Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-11-23 14:13:11 +08:00
parent 4ddb0cd646
commit fc89257566

View File

@ -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;
}
}
}