Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb30d90 commit 7bc567aCopy full SHA for 7bc567a
Coder-Desktop/Coder-Desktop/VPN/VPNService.swift
@@ -185,10 +185,12 @@ extension CoderVPNService {
185
// Any -> Disconnected: Update UI w/ error if present
186
case (_, .disconnected):
187
connection.fetchLastDisconnectError { err in
188
- self.tunnelState = if let err {
189
- .failed(.internalError(err.localizedDescription))
190
- } else {
191
- .disabled
+ Task { @MainActor in
+ self.tunnelState = if let err {
+ .failed(.internalError(err.localizedDescription))
+ } else {
192
+ .disabled
193
+ }
194
}
195
196
// Connecting -> Connecting: no-op
0 commit comments