Skip to content

Commit

Permalink
Fixed invalid function invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jun 16, 2023
1 parent d59eb00 commit 5a9f584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap-core/lib/imap-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a9f584

Please sign in to comment.