Fix on-demand SSID not being added on macOS (#1050)

Skip CoreLocation completely, not entitled.
This commit is contained in:
Davide 2025-01-04 11:01:25 +01:00 committed by GitHub
parent c232fd18a8
commit 236df80950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,9 @@ public actor CoreLocationWifiObserver: NSObject, WifiObserver {
private var continuation: CheckedContinuation<String, Error>?
public func currentSSID() async throws -> String {
#if os(macOS)
""
#else
if let pendingTask {
return try await pendingTask.value
}
@ -56,6 +59,7 @@ public actor CoreLocationWifiObserver: NSObject, WifiObserver {
self.pendingTask = nil
continuation = nil
return result
#endif
}
private func currentSSIDWithoutAuthorization() async -> String {