mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-22 04:43:21 +03:00
@@ -509,6 +509,8 @@ fn run(vs: VideoService) -> ResultType<()> {
|
|||||||
let now = time::Instant::now();
|
let now = time::Instant::now();
|
||||||
if last_check_displays.elapsed().as_millis() > 1000 {
|
if last_check_displays.elapsed().as_millis() > 1000 {
|
||||||
last_check_displays = now;
|
last_check_displays = now;
|
||||||
|
// This check may be redundant, but it is better to be safe.
|
||||||
|
// The previous check in `sp.is_option_true(OPTION_REFRESH)` block may be enough.
|
||||||
try_broadcast_display_changed(&sp, display_idx, &c)?;
|
try_broadcast_display_changed(&sp, display_idx, &c)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -586,6 +588,8 @@ fn run(vs: VideoService) -> ResultType<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
// This check may be redundant, but it is better to be safe.
|
||||||
|
// The previous check in `sp.is_option_true(OPTION_REFRESH)` block may be enough.
|
||||||
try_broadcast_display_changed(&sp, display_idx, &c)?;
|
try_broadcast_display_changed(&sp, display_idx, &c)?;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
|
|||||||
Reference in New Issue
Block a user