diff --git a/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts b/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts index 768a86debc..a00d532258 100644 --- a/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap/v2/EmailReadImapV2.node.ts @@ -634,8 +634,6 @@ export class EmailReadImapV2 implements INodeType { this.logger.verbose(`IMAP connection experienced an error: (${errorCode})`, { error: error as Error, }); - // eslint-disable-next-line @typescript-eslint/no-use-before-define - await closeFunction(); this.emitError(error as Error); }); return conn;