Skip to content

Commit

Permalink
fix ci and make macos service time check more aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Jun 19, 2024
1 parent 137f58a commit adf0226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1395,8 +1395,8 @@ pub fn install_service() -> bool {
"{cp} systemctl enable {app_name}; systemctl stop {app_name}; systemctl start {app_name};"
)) {
Config::set_option("stop-service".into(), "Y".into());
return true;
}
true
}

fn check_if_stop_service() {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ pub fn start_os_service() {
server = get_server_start_time(&mut sys, &path);
}
if let Some((start_time, pid)) = server {
if my_start_time <= start_time {
if my_start_time <= start_time + 1 {
log::error!(
"Agent start later, {my_start_time} vs {start_time}, will restart --service to make delegate work",
);
Expand Down

0 comments on commit adf0226

Please sign in to comment.