mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Only skip server start when CLI arg is passed
This commit is contained in:
@@ -274,12 +274,7 @@ fn setup_tauri(
|
||||
|
||||
app.manage(Mutex::new(window_state));
|
||||
|
||||
if cli.no_start_server {
|
||||
log::info!("Skipping server start.");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if server_running() {
|
||||
if cli.skip_server_start_if_running && server_running() {
|
||||
log::info!("Skipping server start: server is already running.");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ pub struct Cli {
|
||||
#[clap(long)]
|
||||
pub launch_from_path: Option<PathBuf>,
|
||||
#[clap(long)]
|
||||
pub no_start_server: bool,
|
||||
pub skip_server_start_if_running: bool,
|
||||
#[clap(flatten)]
|
||||
verbose: clap_verbosity_flag::Verbosity,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user