diff --git a/apps/gpclient/src/cli.rs b/apps/gpclient/src/cli.rs index dd47000..443e53c 100644 --- a/apps/gpclient/src/cli.rs +++ b/apps/gpclient/src/cli.rs @@ -111,7 +111,7 @@ impl Cli { async fn run(&self) -> anyhow::Result<()> { // check if an instance is running - if self.is_running().await { + if !matches!(self.command, CliCommand::Disconnect(_)) && self.is_running().await { bail!("Another instance of the client is already running"); }