mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(apple): don't pass completionHandler to IPC if we're not going to call it (#7671)
If we pass a `completionHandler` to `sendProviderMessage`, the Network Extension framework will expect that completion handler to be called. Probably doesn't cause any issue as-is, but it would be better to be correct here.
This commit is contained in:
@@ -293,7 +293,7 @@ public class TunnelManager {
|
||||
func updateInternetResourceState() {
|
||||
guard session()?.status == .connected else { return }
|
||||
|
||||
try? session()?.sendProviderMessage(encoder.encode(TunnelMessage.internetResourceEnabled(internetResourceEnabled))) { _ in }
|
||||
try? session()?.sendProviderMessage(encoder.encode(TunnelMessage.internetResourceEnabled(internetResourceEnabled)))
|
||||
}
|
||||
|
||||
func toggleInternetResource(enabled: Bool) {
|
||||
|
||||
Reference in New Issue
Block a user