Merge pull request #3847 from 21pages/fix

fix elevated process crash when remote insert lock screen
This commit is contained in:
RustDesk 2023-03-30 17:20:22 +08:00 committed by GitHub
commit d3e3c39997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1193,7 +1193,9 @@ fn is_function_key(ck: &EnumOrUnknown<ControlKey>) -> bool {
});
res = true;
} else if ck.value() == ControlKey::LockScreen.value() {
lock_screen_2();
std::thread::spawn(|| {
lock_screen_2();
});
res = true;
}
return res;