Skip to content

Commit 24faf09

Browse files
committed
Wait the afterSyncAction future
1 parent 6c277d3 commit 24faf09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/services/livesync/android-platform-livesync-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class AndroidPlatformLiveSyncService extends PlatformLiveSyncServiceBase {
4141
}
4242

4343
if (postAction) {
44-
return postAction(deviceAppData, localToDevicePaths);
44+
return postAction(deviceAppData, localToDevicePaths).wait();
4545
}
4646

47-
return afterSyncAction();
47+
return afterSyncAction().wait();
4848
}).future<void>()();
4949
};
5050
this.$devicesService.execute(action, canExecute).wait();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class IOSPlatformLiveSyncService extends PlatformLiveSyncServiceBase {
3737
}
3838

3939
if (postAction) {
40-
return postAction(deviceAppData, localToDevicePaths);
40+
return postAction(deviceAppData, localToDevicePaths).wait();
4141
}
4242

43-
return afterSyncAction();
43+
return afterSyncAction().wait();
4444
}).future<void>()();
4545
};
4646
this.$devicesService.execute(action, canExecute).wait();

0 commit comments

Comments
 (0)