From 5a9f584c74e2849f99a302610921fb485a60f44b Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 16 Jun 2023 09:56:04 +0300 Subject: [PATCH] Fixed invalid function invocation --- imap-core/lib/imap-command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap-core/lib/imap-command.js b/imap-core/lib/imap-command.js index 96515561..1da07997 100644 --- a/imap-core/lib/imap-command.js +++ b/imap-core/lib/imap-command.js @@ -393,7 +393,7 @@ class IMAPCommand { countBadResponses() { this.connection._badCount++; if (this.connection._badCount > MAX_BAD_COMMANDS) { - this.clearNotificationListener(); + this.connection.clearNotificationListener(); this.connection.send('* BYE Too many protocol errors'); setImmediate(() => this.connection.close(true)); return false;