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

@@ -481,7 +481,7 @@ pub async fn start_server(is_server: bool) {
});
input_service::fix_key_down_timeout_loop();
#[cfg(target_os = "linux")]
if crate::platform::current_is_wayland() {
if input_service::wayland_use_uinput() {
allow_err!(input_service::setup_uinput(0, 1920, 0, 1080).await);
}
#[cfg(any(target_os = "macos", target_os = "linux"))]