nodemailer-smtp-pool
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "nodemailer-smtp-pool", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "SMTP transport for Nodemailer", | ||
@@ -5,0 +5,0 @@ "main": "src/smtp-pool.js", |
@@ -65,5 +65,14 @@ 'use strict'; | ||
SMTPPool.prototype.send = function(mail, callback) { | ||
var called = false; | ||
this._queue.push({ | ||
mail: mail, | ||
callback: callback | ||
callback: function(){ | ||
// callback might me fired twice, depending on how connection error is handled | ||
// so we enforce strict limit of single run only | ||
if(called){ | ||
return; | ||
} | ||
called = true; | ||
callback.apply(null, Array.prototype.slice.call(arguments)); | ||
} | ||
}); | ||
@@ -70,0 +79,0 @@ this._processMessages(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19094
373