Merge pull request #6208 from fufesou/fix/prompt_driver_cert_on_disconn

fix, prompt, driver cert , on disconnecting
This commit is contained in:
RustDesk 2023-10-28 10:48:54 +08:00 committed by GitHub
commit f748395bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,9 +140,9 @@ pub fn plug_in_index_modes(
pub fn reset_all() -> ResultType<()> {
let mut manager = VIRTUAL_DISPLAY_MANAGER.lock().unwrap();
manager.install_update_driver()?;
manager.peer_index_name.clear();
manager.headless_index_name = None;
if !manager.peer_index_name.is_empty() || manager.headless_index_name.is_some() {
manager.install_update_driver()?;
}
Ok(())
}