This commit is contained in:
rustdesk 2024-05-02 13:54:09 +08:00
parent cd78fa9762
commit 9102b6e6b8

View File

@ -45,7 +45,7 @@ fn check_desktop_manager() {
}
pub fn start_xdesktop() {
debug_assert!(crate::is_sever());
debug_assert!(crate::is_server());
std::thread::spawn(|| {
*DESKTOP_MANAGER.lock().unwrap() = Some(DesktopManager::new());
@ -91,7 +91,7 @@ fn detect_headless() -> Option<&'static str> {
}
pub fn try_start_desktop(_username: &str, _passsword: &str) -> String {
debug_assert!(crate::is_sever());
debug_assert!(crate::is_server());
if _username.is_empty() {
let username = get_username();
if username.is_empty() {