mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-11 15:21:01 +03:00
improve lock, https://github.com/rustdesk/rustdesk/issues/11067
This commit is contained in:
@@ -1403,9 +1403,10 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
|
||||
#[inline]
|
||||
fn try_change_init_resolution(&self, display: i32) {
|
||||
if let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) {
|
||||
self.change_resolution(display, w, h);
|
||||
}
|
||||
let Some((w, h)) = self.lc.read().unwrap().get_custom_resolution(display) else {
|
||||
return;
|
||||
};
|
||||
self.change_resolution(display, w, h);
|
||||
}
|
||||
|
||||
fn do_change_resolution(&self, display: i32, width: i32, height: i32) {
|
||||
|
||||
Reference in New Issue
Block a user