mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 15:06:14 -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<()> {
|
async fn run(&self) -> anyhow::Result<()> {
|
||||||
// check if an instance is running
|
// 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");
|
bail!("Another instance of the client is already running");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user