fix(core): add delay in restart command to mitigate #839
This commit is contained in:
parent
5f1ec3719e
commit
af6e91b516
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user