Skip to content

Commit 14fb58b

Browse files
committed
fix: don't hangs livesync process when there is an error on initial sync or on change
1 parent 363bf0f commit 14fb58b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/controllers/run-controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class RunController extends EventEmitter implements IRunController {
331331
error: err,
332332
});
333333

334-
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier] });
334+
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier], stopOptions: { shouldAwaitAllActions: false }});
335335
}
336336
};
337337

@@ -410,7 +410,7 @@ export class RunController extends EventEmitter implements IRunController {
410410
error: err,
411411
});
412412

413-
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier] });
413+
await this.stop({ projectDir: projectData.projectDir, deviceIdentifiers: [device.deviceInfo.identifier], stopOptions: { shouldAwaitAllActions: false } });
414414
}
415415
};
416416

0 commit comments

Comments
 (0)