debug, win, privacy mode, broker

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-07-09 02:05:25 +08:00
parent 32c349dd8b
commit e80da4af0d
4 changed files with 16 additions and 27 deletions

View File

@@ -931,23 +931,10 @@ pub mod connection_manager {
}
}
extern "C" fn cm_clear_hook() {
#[cfg(target_os = "windows")]
crate::privacy_win_mag::stop();
}
#[inline]
pub fn cm_init() {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
start_listen_ipc_thread();
#[cfg(target_os = "windows")]
shutdown_hooks::add_shutdown_hook(cm_clear_hook);
}
#[inline]
pub fn cm_clear() {
#[cfg(target_os = "windows")]
crate::privacy_win_mag::stop();
}
#[cfg(target_os = "android")]