Fixed invalid function invocation

This commit is contained in:
Andris Reinman 2023-06-16 09:56:04 +03:00
parent d59eb0058d
commit 5a9f584c74
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364

View file

@ -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;