mailer: set dnsReady flag

This commit is contained in:
Girish Ramakrishnan
2015-11-05 10:28:41 -08:00
parent 12061cc707
commit 7e36b3f8e5
+3
View File
@@ -125,11 +125,14 @@ function checkDns() {
}
debug('checkDns: SPF check passed. commencing mail processing');
gDnsReady = true;
processQueue();
});
}
function processQueue() {
assert(gDnsReady);
docker.getContainer('mail').inspect(function (error, data) {
if (error) return console.error(error);