Skip to content

Commit af8817b

Browse files
committed
Only reconnect if it was explicitly disconnected
1 parent 358d4d0 commit af8817b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/coderApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class CoderApi extends Api implements vscode.Disposable {
174174
}));
175175
return watchConfigurationChanges(settings, () => {
176176
const socketsToReconnect = [...this.reconnectingSockets].filter(
177-
(socket) => socket.state !== ConnectionState.CONNECTED,
177+
(socket) => socket.state === ConnectionState.DISCONNECTED,
178178
);
179179
if (socketsToReconnect.length > 0) {
180180
this.output.info(

0 commit comments

Comments
 (0)