fix(core): add delay in restart command to mitigate #839

This commit is contained in:
Federico Terzi 2021-11-04 22:09:13 +01:00
parent 5f1ec3719e
commit af6e91b516

View File

@ -101,6 +101,7 @@ fn service_main(args: CliModuleArgs) -> i32 {
return status_main(&paths); return status_main(&paths);
} else if let Some(sub_args) = cli_args.subcommand_matches("restart") { } else if let Some(sub_args) = cli_args.subcommand_matches("restart") {
stop_main(&paths); stop_main(&paths);
std::thread::sleep(std::time::Duration::from_millis(300));
return start_main(&paths, &paths_overrides, sub_args); return start_main(&paths, &paths_overrides, sub_args);
} }