mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-30 01:14:05 +07:00
node_modules: update
This commit is contained in:
21
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
21
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
@ -873,16 +873,21 @@ class SMTPConnection extends EventEmitter {
|
||||
});
|
||||
|
||||
this.upgrading = true;
|
||||
this._socket = tls.connect(opts, () => {
|
||||
this.secure = true;
|
||||
this.upgrading = false;
|
||||
this._socket.on('data', this._onSocketData);
|
||||
// tls.connect is not an asynchronous function however it may still throw errors and requires to be wrapped with try/catch
|
||||
try {
|
||||
this._socket = tls.connect(opts, () => {
|
||||
this.secure = true;
|
||||
this.upgrading = false;
|
||||
this._socket.on('data', this._onSocketData);
|
||||
|
||||
socketPlain.removeListener('close', this._onSocketClose);
|
||||
socketPlain.removeListener('end', this._onSocketEnd);
|
||||
socketPlain.removeListener('close', this._onSocketClose);
|
||||
socketPlain.removeListener('end', this._onSocketEnd);
|
||||
|
||||
return callback(null, true);
|
||||
});
|
||||
return callback(null, true);
|
||||
});
|
||||
} catch (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
this._socket.on('error', this._onSocketError);
|
||||
this._socket.once('close', this._onSocketClose);
|
||||
|
Reference in New Issue
Block a user