add null check
This commit is contained in:
@@ -103,8 +103,8 @@ function getTxtRecords(callback) {
|
||||
|
||||
function checkDns() {
|
||||
getTxtRecords(function (error, records) {
|
||||
if (error) {
|
||||
debug('checkDns: DNS error looking up TXT records for %s', config.fqdn(), error);
|
||||
if (error || !records) {
|
||||
debug('checkDns: DNS error or no records looking up TXT records for %s %s', config.fqdn(), error, records);
|
||||
gCheckDnsTimerId = setTimeout(checkDns, 60000);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user