From e0aee6898bbd628d5f6acdfaa682bd0d7ed08e71 Mon Sep 17 00:00:00 2001 From: fufesou Date: Tue, 31 May 2022 10:00:11 +0800 Subject: [PATCH] privacy_mode_win_magnifier: privacy conn id set after succeess Signed-off-by: fufesou --- src/server/connection.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/connection.rs b/src/server/connection.rs index c2a10fa6b..746278fd0 100644 --- a/src/server/connection.rs +++ b/src/server/connection.rs @@ -1168,7 +1168,6 @@ impl Connection { back_notification::PrivacyModeState::NotSupported, ) } else { - video_service::set_privacy_mode_conn_id(0); match privacy_mode::turn_on_privacy(self.inner.id) { Ok(true) => { video_service::set_privacy_mode_conn_id(self.inner.id); @@ -1366,7 +1365,7 @@ mod privacy_mode { back_notification::PrivacyModeState::OffSucceeded, ), Err(e) => { - log::error!("Failed to turn off privacy mode{}", e); + log::error!("Failed to turn off privacy mode {}", e); crate::common::make_privacy_mode_msg( back_notification::PrivacyModeState::OffFailed, )