Skip to content

Commit ef06e1e

Browse files
committed
fix
1 parent d6b63a7 commit ef06e1e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Coder-Desktop/VPNLib/TunnelDaemon.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ public actor TunnelDaemon {
1515
}
1616

1717
private var monitorTask: Task<Void, Never>?
18-
private var onFail: (TunnelDaemonError) -> Void
18+
private var onFail: @Sendable (TunnelDaemonError) -> Void
1919

2020
public var writeHandle: FileHandle { tunnelReadPipe.fileHandleForWriting }
2121
public var readHandle: FileHandle { tunnelWritePipe.fileHandleForReading }
2222

2323
var pid: pid_t?
2424

25-
public init(binaryPath: URL, onFail: @escaping (TunnelDaemonError) -> Void) async throws(TunnelDaemonError) {
25+
public init(
26+
binaryPath: URL,
27+
onFail: @Sendable @escaping (TunnelDaemonError) -> Void
28+
) async throws(TunnelDaemonError) {
2629
self.onFail = onFail
2730
tunnelReadPipe = Pipe()
2831
tunnelWritePipe = Pipe()

0 commit comments

Comments
 (0)