fix: crash, drop tokio RunTime in async context (#9091)

* fix: crash, drop tokio RunTime in async context

Signed-off-by: fufesou <linlong1266@gmail.com>

* chore

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-08-16 14:55:42 +08:00
committed by GitHub
parent ed18e3c786
commit f31e60af5b
4 changed files with 47 additions and 31 deletions

View File

@@ -1320,7 +1320,7 @@ impl Connection {
#[cfg(target_os = "linux")]
{
// use rdp_input when uinput is not available in wayland. Ex: flatpak
if !is_x11() && !crate::is_server() {
if input_service::wayland_use_rdp_input() {
let _ = setup_rdp_input().await;
}
}