mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix, win privacy mode, broker process
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -2273,6 +2273,15 @@ fn run_after_run_cmds(silent: bool) {
|
||||
std::thread::sleep(std::time::Duration::from_millis(300));
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn try_kill_broker() {
|
||||
allow_err!(run_cmds(
|
||||
format!("taskkill /F /IM {}", WIN_MAG_INJECTED_PROCESS_EXE),
|
||||
false,
|
||||
"kill_broker"
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user