diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 8fbe6560..bd7eb65e 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -14,6 +14,7 @@ class ENS { this.namesConfig = embark.config.namesystemConfig; this.registration = this.namesConfig.register || {}; this.embark = embark; + this.firstDeployDone = false; if (this.namesConfig === {} || this.namesConfig.enabled !== true || @@ -34,6 +35,9 @@ class ENS { } setProviderAndRegisterDomains(cb) { + if(this.firstDeployDone) { + return cb(); + } const self = this; async.parallel([ function getENSRegistry(paraCb) { @@ -78,6 +82,7 @@ class ENS { return cb(); } self.registerConfigDomains(config, cb); + self.firstDeployDone = true; }); }