diff --git a/src/main/ssh/ssh-connection-utils.ts b/src/main/ssh/ssh-connection-utils.ts index 26dd66f16e4..1335344a072 100644 --- a/src/main/ssh/ssh-connection-utils.ts +++ b/src/main/ssh/ssh-connection-utils.ts @@ -68,10 +68,7 @@ export function isTransientError(err: Error): boolean { if (code && TRANSIENT_ERROR_CODES.has(code)) { return true } - if (err.message.includes('ETIMEDOUT')) { - return true - } - if (err.message.includes('ECONNREFUSED')) { + if (err.message.includes('ETIMEDOUT') || err.message.includes('ECONNREFUSED')) { return true } if (err.message.includes('ECONNRESET')) {