Bugfix: mail sender stuck

This commit is contained in:
vladimir 2017-04-15 17:13:36 +02:00
parent 818e764b28
commit 684ba69d46

View file

@ -545,7 +545,6 @@ let sendLoop = () => {
});
};
setImmediate(trySend);
setImmediate(() => mailer.transport.checkThrottling(getNext));
} else {
db.getConnection((err, connection) => {
if (err) {
@ -571,6 +570,7 @@ let sendLoop = () => {
});
});
}
setImmediate(() => mailer.transport.checkThrottling(getNext));
});
});
});