fix, macos as the controlled side, crash on disconnect

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-09-17 09:17:51 +08:00
parent eb5ea17610
commit 7ffe11b000
2 changed files with 1 additions and 4 deletions

View File

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