mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-17 13:46:27 -05:00
fix(cli): exempt hip subcommand from singleton lock check (#658)
This commit is contained in:
1 parent
9e4f45997e
commit
0425ee6ddb
1 file changed
+4
-1
@@ -135,7 +135,10 @@ impl Cli {
|
||||
|
||||
async fn run(&self) -> anyhow::Result<()> {
|
||||
// check if an instance is running
|
||||
if !matches!(self.command, CliCommand::Disconnect(_)) && self.is_running().await {
|
||||
if !matches!(
|
||||
self.command,
|
||||
CliCommand::Disconnect(_) | CliCommand::Hip(_)
|
||||
) && self.is_running().await {
|
||||
bail!("Another instance of the client is already running");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user