Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7bc567a

Browse files
authored
chore: add MainActor when mutating vpn state (#225)
1 parenteb30d90 commit7bc567a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,12 @@ extension CoderVPNService {
185185
// Any -> Disconnected: Update UI w/ error if present
186186
case(_,.disconnected):
187187
connection.fetchLastDisconnectError{ errin
188-
self.tunnelState=iflet err{
189-
.failed(.internalError(err.localizedDescription))
190-
}else{
191-
.disabled
188+
Task{@MainActorin
189+
self.tunnelState=iflet err{
190+
.failed(.internalError(err.localizedDescription))
191+
}else{
192+
.disabled
193+
}
192194
}
193195
}
194196
// Connecting -> Connecting: no-op

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp