Skip to content

Commit e18db5b

Browse files
Fix missing await for liveEdit (#2651)
The liveEdit method returns Promise, but we do not await it, which could lead to incorrect behavior.
1 parent 8e0647c commit e18db5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/livesync/ios-device-livesync-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class IOSLiveSyncService implements INativeScriptDeviceLiveSyncService {
7979
}
8080

8181
if (await this.setupSocketIfNeeded(projectData.projectId)) {
82-
this.liveEdit(scriptFiles);
82+
await this.liveEdit(scriptFiles);
8383
await this.reloadPage(deviceAppData, otherFiles);
8484
} else {
8585
await this.restartApplication(deviceAppData, projectData.projectName);

0 commit comments

Comments
 (0)