Bugfix: mail sender stuck
This commit is contained in:
parent
818e764b28
commit
684ba69d46
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,6 @@ let sendLoop = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
setImmediate(trySend);
|
setImmediate(trySend);
|
||||||
setImmediate(() => mailer.transport.checkThrottling(getNext));
|
|
||||||
} else {
|
} else {
|
||||||
db.getConnection((err, connection) => {
|
db.getConnection((err, connection) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -571,6 +570,7 @@ let sendLoop = () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
setImmediate(() => mailer.transport.checkThrottling(getNext));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue