Skip to content

Commit ce61e4f

Browse files
authored
Merge pull request #4871 from NativeScript/fatme/stop-livesync
fix: fix issues when stopping the livesync process
2 parents fdb6b78 + 14fb58b commit ce61e4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/controllers/run-controller.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ export class RunController extends EventEmitter implements IRunController {
330330
applicationIdentifier: projectData.projectIdentifiers[device.deviceInfo.platform.toLowerCase()],
331331
error: err,
332332
});
333+
334+
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier], stopOptions: { shouldAwaitAllActions: false }});
333335
}
334336
};
335337

@@ -408,7 +410,7 @@ export class RunController extends EventEmitter implements IRunController {
408410
error: err,
409411
});
410412

411-
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier] });
413+
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier], stopOptions: { shouldAwaitAllActions: false } });
412414
}
413415
};
414416

0 commit comments

Comments
 (0)