mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
remove is_rdp_service_open judgement for option share rdp (#7257)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user