We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04f61a commit cbd8ce4Copy full SHA for cbd8ce4
Coder-Desktop/Coder-Desktop/VPN/VPNService.swift
@@ -97,8 +97,6 @@ final class CoderVPNService: NSObject, VPNService {
97
return
98
}
99
100
- onStart?()
101
-
102
menuState.clear()
103
await startTunnel()
104
logger.debug("network extension enabled")
@@ -185,8 +183,11 @@ extension CoderVPNService {
185
183
// Connected -> Connected: no-op
186
184
case (.connected, .connected):
187
break
188
- // Non-connecting -> Connecting: Establish XPC
+ // Non-connecting -> Connecting:
+ // - Establish XPC
+ // - Run `onStart` closure
189
case (_, .connecting):
190
+ onStart?()
191
xpc.connect()
192
xpc.ping()
193
tunnelState = .connecting
0 commit comments