make main window can be reopen if killed by --server for creating ipc

This commit is contained in:
rustdesk
2024-06-19 09:27:29 +08:00
parent 1fcc7001bd
commit 5a740e891e
3 changed files with 17 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ pub mod linux_desktop_manager;
use hbb_common::{message_proto::CursorData, ResultType};
use std::sync::{Arc, Mutex};
#[cfg(not(any(target_os = "macos", target_os = "android", target_os = "ios")))]
const SERVICE_INTERVAL: u64 = 300;
pub const SERVICE_INTERVAL: u64 = 300;
lazy_static::lazy_static! {
static ref INSTALLING_SERVICE: Arc<Mutex<bool>>= Default::default();