Merge branches 'features/add-swarm-to-embarkjs' and 'features/add-swarm-to-embarkjs' of https://github.com/embark-framework/embark into features/add-swarm-to-embarkjs

This commit is contained in:
emizzle 2018-04-30 22:07:52 +10:00
commit b93b3b4e47
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ class Engine {
self.currentAbi = abi; self.currentAbi = abi;
self.contractsJSON = contractsJSON; self.contractsJSON = contractsJSON;
pipeline.build(abi, contractsJSON, null, function() { pipeline.build(abi, contractsJSON, null, function() {
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched if (self.watch) {
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched
}
self.events.emit('outputDone'); self.events.emit('outputDone');
}); });
}); });