Skip to content

Commit 0d20d42

Browse files
committed
hotfix for watch not defined
1 parent 6766eca commit 0d20d42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/core/engine.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ class Engine {
146146
self.currentAbi = abi;
147147
self.contractsJSON = contractsJSON;
148148
pipeline.build(abi, contractsJSON, null, function() {
149-
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched
149+
if (self.watch) {
150+
self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched
151+
}
150152
self.events.emit('outputDone');
151153
});
152154
});

0 commit comments

Comments
 (0)