Skip to content

Commit dad1d8d

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Add missing wait
1 parent c8bf590 commit dad1d8d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

lib/common

lib/services/usb-livesync-service.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,13 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
187187
}).future<void>()();
188188
}
189189

190-
protected preparePlatformForSync(platform: string): void {
191-
if (!this.$platformService.preparePlatform(platform).wait()) {
192-
this.$logger.out("Verify that listed files are well-formed and try again the operation.");
193-
}
190+
protected preparePlatformForSync(platform: string): IFuture<void> {
191+
return (() => {
192+
if (!this.$platformService.preparePlatform(platform).wait()) {
193+
this.$logger.out("Verify that listed files are well-formed and try again the operation.");
194+
return;
195+
}
196+
}).future<void>()();
194197
}
195198

196199
private resolveUsbLiveSyncService(platform: string, device: Mobile.IDevice): IPlatformSpecificUsbLiveSyncService {

0 commit comments

Comments
 (0)