From 5647dd040d1e64f43b31fd68e2ae9ad409bf4ce4 Mon Sep 17 00:00:00 2001 From: witzig Date: Fri, 16 Jun 2017 14:28:57 +0200 Subject: [PATCH] Updated subscription-mail-helper.js - Don't wait for mailer to finish. Note: When using encryptionKeys, confirmation redirects feel a bit sluggish. This could probably be 'improved' by calling sendMail via setTimout or fixed by moving sendMail to a worker. --- lib/subscription-mail-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/subscription-mail-helpers.js b/lib/subscription-mail-helpers.js index 16e6cdaa..71ed13af 100644 --- a/lib/subscription-mail-helpers.js +++ b/lib/subscription-mail-helpers.js @@ -144,11 +144,11 @@ function sendMail(list, email, template, subject, relativeUrls, mailOpts, subscr }, err => { if (err) { log.error('Subscription', err); - return callback(err); } - callback(); }); + callback(); + }); }); });