Skip to content

Fixed: Livesync both Android and iOS at the same time, only android updates #1901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/npm-installation-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as path from "path";
import * as semver from "semver";
import * as npm from "npm";
import * as constants from "./constants";
import {sleep} from "../lib/common/helpers";

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

while (this.$lockfile.check().wait()) {
;
while(this.$lockfile.check().wait()) {
sleep(10);
}

this.$lockfile.lock().wait();
Expand Down
5 changes: 3 additions & 2 deletions lib/tools/broccoli/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as shelljs from "shelljs";
import Future = require("fibers/future");
import * as destCopyLib from "./node-modules-dest-copy";
import * as fiberBootstrap from "../../common/fiber-bootstrap";
import {sleep} from "../../../lib/common/helpers";

let glob = require("glob");

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

while (this.$lockfile.check().wait()) {
;
while(this.$lockfile.check().wait()) {
sleep(10);
}

this.$lockfile.lock().wait();
Expand Down