Suppress ETIMEDOUT errors

This commit is contained in:
Andris Reinman 2017-10-07 22:48:18 +03:00
parent a5a624ac90
commit a0b053ddaa

View file

@ -7,6 +7,7 @@ const tlsOptions = require('./tls-options');
const EventEmitter = require('events').EventEmitter;
const shared = require('nodemailer/lib/shared');
const punycode = require('punycode');
const errors = require('../../lib/errors.js');
const CLOSE_TIMEOUT = 1 * 1000; // how much to wait until pending connections are terminated
@ -175,6 +176,7 @@ class IMAPServer extends EventEmitter {
* @event
*/
_onError(err) {
errors.notify(err);
this.emit('error', err);
}