Skip to content

Commit ab6bb5c

Browse files
committed
Make the CONNREFUSED retry logic work
1 parent a85d940 commit ab6bb5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ export class AtelierAPI {
357357
return data;
358358
}
359359
} catch (error) {
360-
if (error.error && error.error.code === "ECONNREFUSED") {
360+
if (error.code === "ECONNREFUSED") {
361+
authRequestMap.delete(target);
361362
panel.text = `${this.connInfo} $(debug-disconnect)`;
362363
panel.tooltip = "Disconnected";
363364
workspaceState.update(this.configName + ":host", undefined);

0 commit comments

Comments
 (0)