diff --git a/src/dns.js b/src/dns.js index 4753d22c3..3d4160bf0 100644 --- a/src/dns.js +++ b/src/dns.js @@ -207,7 +207,7 @@ async function registerLocations(locations, options, progressCallback) { const ip = await sysinfo.getServerIp(); for (const location of locations) { - const error = await promiseRetry({ times: 200, interval: 5000, debug }, async function () { + const error = await promiseRetry({ times: 200, interval: 5000, debug }, async function () { // returns error to abort the "retry" progressCallback({ message: `Registering location: ${location.subdomain ? (location.subdomain + '.') : ''}${location.domain}` }); // get the current record before updating it @@ -243,7 +243,7 @@ async function unregisterLocations(locations, progressCallback) { const ip = await sysinfo.getServerIp(); for (const location of locations) { - const error = await promiseRetry({ times: 30, interval: 5000, debug }, async function () { + const error = await promiseRetry({ times: 30, interval: 5000, debug }, async function () { // returns error to abort the "retry" progressCallback({ message: `Unregistering location: ${location.subdomain ? (location.subdomain + '.') : ''}${location.domain}` }); const [error] = await safe(removeDnsRecords(location.subdomain, location.domain, 'A', [ ip ]));