more for cli

This commit is contained in:
rustdesk
2022-12-29 13:00:57 +08:00
parent 8c7bc08776
commit 45072a4de1
3 changed files with 8 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ pub mod audio_service;
cfg_if::cfg_if! {
if #[cfg(not(any(target_os = "android", target_os = "ios")))] {
mod clipboard_service;
#[cfg(not(feature = "cli"))]
#[cfg(target_os = "linux")]
pub(crate) mod wayland;
#[cfg(target_os = "linux")]
@@ -318,6 +319,7 @@ impl Drop for Server {
for s in self.services.values() {
s.join();
}
#[cfg(not(feature = "cli"))]
#[cfg(target_os = "linux")]
wayland::clear();
}