Skip to content

Commit 01e8b3c

Browse files
author
Tsvetan Raikov
committed
Fixed: Livesync both Android and iOS at the same time, only android updates
1 parent e738b45 commit 01e8b3c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/npm-installation-manager.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as path from "path";
22
import * as semver from "semver";
33
import * as npm from "npm";
44
import * as constants from "./constants";
5+
import {sleep} from "../lib/common/helpers";
56

67
export class NpmInstallationManager implements INpmInstallationManager {
78
private static NPM_LOAD_FAILED = "Failed to retrieve data from npm. Please try again a little bit later.";
@@ -107,8 +108,8 @@ export class NpmInstallationManager implements INpmInstallationManager {
107108
public install(packageName: string, opts?: INpmInstallOptions): IFuture<string> {
108109
return (() => {
109110

110-
while (this.$lockfile.check().wait()) {
111-
;
111+
while(this.$lockfile.check().wait()) {
112+
sleep(10);
112113
}
113114

114115
this.$lockfile.lock().wait();

lib/tools/broccoli/builder.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as shelljs from "shelljs";
55
import Future = require("fibers/future");
66
import * as destCopyLib from "./node-modules-dest-copy";
77
import * as fiberBootstrap from "../../common/fiber-bootstrap";
8+
import {sleep} from "../../../lib/common/helpers";
89

910
let glob = require("glob");
1011

@@ -35,8 +36,8 @@ export class Builder implements IBroccoliBuilder {
3536
}, (er: Error, files: string[]) => {
3637
fiberBootstrap.run(() => {
3738

38-
while (this.$lockfile.check().wait()) {
39-
;
39+
while(this.$lockfile.check().wait()) {
40+
sleep(10);
4041
}
4142

4243
this.$lockfile.lock().wait();

0 commit comments

Comments
 (0)