mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix server service not start after daemon installed at first time
This commit is contained in:
@@ -274,7 +274,16 @@ pub async fn start_server(is_server: bool, _tray: bool) {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
sync_and_watch_config_dir().await;
|
||||
{
|
||||
loop {
|
||||
if crate::platform::macos::is_installed_daemon(false) {
|
||||
break;
|
||||
}
|
||||
|
||||
sleep(1.0).await;
|
||||
}
|
||||
sync_and_watch_config_dir().await;
|
||||
}
|
||||
|
||||
if is_server {
|
||||
std::thread::spawn(move || {
|
||||
|
||||
Reference in New Issue
Block a user