Skip to content

Commit 6c8ceef

Browse files
Merge pull request #1709 from NativeScript/vladimirov/fix-broccoli-future
Fix broccoli builder future resolved more than once
2 parents c867146 + 5b58859 commit 6c8ceef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/tools/broccoli/builder.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ export class Builder implements IBroccoliBuilder {
8080
if (!future.isResolved()) {
8181
let intervalId = setInterval(() => {
8282
fiberBootstrap.run(() => {
83-
if (!this.$lockfile.check().wait()) {
84-
future.return();
83+
if (!this.$lockfile.check().wait() || future.isResolved()) {
84+
if(!future.isResolved()) {
85+
future.return();
86+
}
8587
clearInterval(intervalId);
8688
}
8789
});

0 commit comments

Comments
 (0)