Skip to content

Commit

Permalink
Fix debugger hangs if build of app fails
Browse files Browse the repository at this point in the history
We wait for port to attach from the CLI and if the port is null we stop the attach process. If the CLI exit with non zero code we send empty port so the debugger is stopped.
Now stop debugging each time CLI exits when it's in initial start state.
  • Loading branch information
ivanovit committed Sep 14, 2018
1 parent fdc029c commit 593bafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/buildService.ts
Expand Up @@ -76,9 +76,9 @@ export class BuildService {
const errorMessage = `The tns command finished its execution with code ${code}`;

this._logger.log(errorMessage);

res();
}

res();
});
}

Expand Down

0 comments on commit 593bafb

Please sign in to comment.