subdomains.del now takes array values

This commit is contained in:
Girish Ramakrishnan
2015-10-30 13:30:19 -07:00
parent 5c4b4d764e
commit d6bff57c7d
4 changed files with 16 additions and 23 deletions
+1 -3
View File
@@ -268,12 +268,10 @@ function unregisterSubdomain(app, location, callback) {
return callback(null);
}
var record = { subdomain: location, type: 'A', value: sysinfo.getIp() };
async.retry({ times: 30, interval: 5000 }, function (retryCallback) {
debugApp(app, 'Unregistering subdomain: %s', location);
subdomains.remove(record, function (error) {
subdomains.remove(location, 'A', [ sysinfo.getIp() ], function (error) {
if (error && (error.reason === SubdomainError.STILL_BUSY || error.reason === SubdomainError.EXTERNAL_ERROR)) return retryCallback(error); // try again
retryCallback(null, error);