Skip to content

Commit 139157d

Browse files
committed
fixup
1 parent 207da24 commit 139157d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Coder Desktop/Coder Desktop/VPNService.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ final class CoderVPNService: NSObject, VPNService {
7777
}
7878

7979
func start() async {
80-
guard tunnelState == .disabled else { return }
80+
switch tunnelState {
81+
case .disabled, .failed:
82+
break
83+
default:
84+
return
85+
}
86+
8187
// this ping is somewhat load bearing since it causes xpc to init
8288
xpc.ping()
8389
tunnelState = .connecting

0 commit comments

Comments
 (0)