hotfix for watch not defined

This commit is contained in:
Jonathan Rainville 2018-04-30 09:29:31 -04:00
parent 6766ecae5f
commit 0d20d422ce
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() {
if (self.watch) {
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched 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');
}); });
}); });