mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 06:56:17 -05:00
fix: scope broker helpers to their platforms
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
mod cli;
|
mod cli;
|
||||||
#[cfg(unix)]
|
#[cfg(all(unix, any(target_os = "macos", debug_assertions)))]
|
||||||
mod credential_lease;
|
mod credential_lease;
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
mod dev_bootstrap;
|
mod dev_bootstrap;
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ impl SessionRegistry {
|
|||||||
Ok(credential)
|
Ok(credential)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
pub fn is_empty(&self) -> bool {
|
pub fn is_empty(&self) -> bool {
|
||||||
let Ok(mut sessions) = self.sessions.lock() else {
|
let Ok(mut sessions) = self.sessions.lock() else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in new issue
Block a user