Skip to content

Commit 5d45f94

Browse files
authored
Improve: Remove process.kill code from livesync-service (#2418)
1 parent 91657ea commit 5d45f94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/services/livesync/livesync-service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class LiveSyncService implements ILiveSyncService {
4949

5050
public liveSync(platform: string, applicationReloadAction?: (deviceAppData: Mobile.IDeviceAppData) => IFuture<void>): IFuture<void> {
5151
return (() => {
52+
if (this.$options.justlaunch) {
53+
this.$options.watch = false;
54+
}
5255
let liveSyncData: ILiveSyncData[] = [];
5356
if (platform) {
5457
this.$devicesService.initialize({ platform: platform, deviceId: this.$options.device }).wait();
@@ -109,9 +112,6 @@ class LiveSyncService implements ILiveSyncService {
109112
this.$hooksService.executeBeforeHooks('watch').wait();
110113
this.partialSync(liveSyncData[0].syncWorkingDirectory, watchForChangeActions);
111114
}
112-
if (this.$options.justlaunch) {
113-
process.kill(process.pid);
114-
}
115115
}).future<void>()();
116116
}
117117

0 commit comments

Comments
 (0)