Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix, macos as the controlled side, crash on disconnect

fufesou7ffe11b00075
diff --git a/Cargo.lock b/Cargo.lock
index 0655e5e4d..3a8adbda2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4881,7 +4881,7 @@ dependencies = [
[[package]]
name = "rdev"
version = "0.5.0-2"
-source = "git+https://github.com/fufesou/rdev#bec664ee8743ade8d2fdd099b114c9eeacd9cfba"
+source = "git+https://github.com/fufesou/rdev#2e8221d653f4995c831ad52966e79a514516b1fa"
dependencies = [
"cocoa",
"core-foundation",
diff --git a/src/server/input_service.rs b/src/server/input_service.rs
index fd3a7cd24..b721149e9 100644
--- a/src/server/input_service.rs
+++ b/src/server/input_service.rs
@@ -380,9 +380,6 @@ pub fn try_stop_record_cursor_pos() {
return;
}
RECORD_CURSOR_POS_RUNNING.store(false, Ordering::SeqCst);
-
- #[cfg(any(target_os = "windows", target_os = "macos"))]
- let _r = rdev::exit_grab();
}
// mac key input must be run in main thread, otherwise crash on >= osx 10.15