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;