File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Coder Desktop/Coder Desktop Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ import VPNLib
6
6
@objc final class VPNXPCInterface : NSObject , VPNXPCClientCallbackProtocol , @unchecked Sendable {
7
7
private var svc : CoderVPNService
8
8
private let logger = Logger ( subsystem: Bundle . main. bundleIdentifier!, category: " VPNXPCInterface " )
9
- private var xpc : VPNXPCProtocol ? = nil
9
+ private var xpc : VPNXPCProtocol ?
10
10
11
11
init ( vpn: CoderVPNService ) {
12
12
svc = vpn
13
13
super. init ( )
14
14
}
15
15
16
16
func connect( ) {
17
+ guard xpc == nil else {
18
+ return
19
+ }
17
20
let networkExtDict = Bundle . main. object ( forInfoDictionaryKey: " NetworkExtension " ) as? [ String : Any ]
18
21
let machServiceName = networkExtDict ? [ " NEMachServiceName " ] as? String
19
22
let xpcConn = NSXPCConnection ( machServiceName: machServiceName!)
You can’t perform that action at this time.
0 commit comments