Skip to content

Commit ba2d732

Browse files
committed
fixup
1 parent 75f17ca commit ba2d732

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Coder-Desktop/Coder-Desktop/VPN/VPNService.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,16 @@ extension CoderVPNService {
183183
// Connected -> Connected: no-op
184184
case (.connected, .connected):
185185
break
186-
// Non-connecting -> Connecting:
187-
// - Establish XPC
188-
// - Run `onStart` closure
186+
// Non-connecting -> Connecting: Establish XPC
189187
case (_, .connecting):
190-
onStart?()
191188
xpc.connect()
192189
xpc.ping()
193190
tunnelState = .connecting
194-
// Non-connected -> Connected: Retrieve Peers
191+
// Non-connected -> Connected:
192+
// - Retrieve Peers
193+
// - Run `onStart` closure
195194
case (_, .connected):
195+
onStart?()
196196
xpc.connect()
197197
xpc.getPeerState()
198198
tunnelState = .connected

0 commit comments

Comments
 (0)