File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Coder-Desktop/Coder-Desktop Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,18 @@ class AppState: ObservableObject {
163
163
164
164
refreshTask = Task {
165
165
let res = try ? await retry ( floor: . milliseconds( 100 ) , ceil: . seconds( 10 ) ) {
166
- let config = try await client. agentConnectionInfoGeneric ( )
167
- return config. hostname_suffix
166
+ do {
167
+ let config = try await client. agentConnectionInfoGeneric ( )
168
+ return config. hostname_suffix
169
+ } catch {
170
+ logger. error ( " failed to get agent connection info (retrying): \( error) " )
171
+ throw error
172
+ }
168
173
}
169
174
return res
170
175
}
171
176
172
- self . hostnameSuffix = await refreshTask? . value ?? Self . defaultHostnameSuffix
177
+ hostnameSuffix = await refreshTask? . value ?? Self . defaultHostnameSuffix
173
178
}
174
179
}
175
180
You can’t perform that action at this time.
0 commit comments