wayland, comment out reseting capturer for now
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
63e6b2f8ab
commit
56c451bfb8
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user