Skip to content

Commit 992a550

Browse files
authored
Merge pull request #89 from NativeScript/pete/fix-sync-hanging-on-device
Fix #77 sync command not working on android devices
2 parents 2edceb5 + 26838fe commit 992a550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/NsCliService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class AndroidProject extends NSProject {
251251
that.emit('TNS.outputMessage', data.toString(), 'log');
252252
that.writeToTnsOutputFile(strData);
253253
if (!launched) {
254-
if (args.request === "launch" && ((strData.indexOf('# NativeScript Debugger started #') > -1) || strData.indexOf('Successfully synced application') > -1)) {
254+
if (args.request === "launch" && strData.indexOf('# NativeScript Debugger started #') > -1) {
255255
launched = true;
256256
//wait a little before trying to connect, this gives a changes for adb to be able to connect to the debug socket
257257
setTimeout(() => {

0 commit comments

Comments
 (0)