remove is_rdp_service_open judgement for option share rdp (#7257)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-02-25 20:09:30 +08:00
committed by GitHub
parent 4c8c2aa323
commit b511a52e09
6 changed files with 7 additions and 21 deletions

View File

@@ -51,7 +51,10 @@ pub struct StrategyOptions {
#[cfg(not(any(target_os = "ios")))]
#[tokio::main(flavor = "current_thread")]
async fn start_hbbs_sync_async() {
let mut interval = crate::rustdesk_interval(tokio::time::interval_at(Instant::now() + TIME_CONN, TIME_CONN));
let mut interval = crate::rustdesk_interval(tokio::time::interval_at(
Instant::now() + TIME_CONN,
TIME_CONN,
));
let mut last_sent: Option<Instant> = None;
let mut info_uploaded: (bool, String, Option<Instant>) = (false, "".to_owned(), None);
loop {
@@ -150,7 +153,7 @@ fn handle_config_options(config_options: HashMap<String, String>) {
if k == "allow-share-rdp" {
// only changes made after installation take effect.
#[cfg(windows)]
if crate::ui_interface::is_rdp_service_open() {
if crate::platform::is_installed() {
let current = crate::ui_interface::is_share_rdp();
let set = v == "Y";
if current != set {