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 830d147 commit c5bddb4Copy full SHA for c5bddb4
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