Commit 23176d6
committed
fix: move [weak self] capture into inner Task closures
Swift 5.10 strict concurrency rejects capturing the outer closure's
weak `self` (a `var`) into an inner `Task` closure that only later
unwraps it via `guard let self`. Pull `[weak self]` directly onto the
inner Task closure so the capture happens in the concurrent boundary
itself instead of crossing through an outer mutable binding.
Affects TunnelManager IPC stop observer and LogsWindow termination
handler.1 parent 9f789df commit 23176d6
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments