From 8e5267305417ab462133313e959964c346be44cd Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Thu, 10 Dec 2015 15:51:23 +0200 Subject: [PATCH] UsbLiveSyncService minor cleanup. --- lib/common | 2 +- lib/services/usb-livesync-service.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/common b/lib/common index b083503f9a..e195212386 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit b083503f9a6627363e0c0d4e0a1971a1991172dd +Subproject commit e1952123867e650bad88f3b1b7a58e2e5ac0fe8f diff --git a/lib/services/usb-livesync-service.ts b/lib/services/usb-livesync-service.ts index 68486e97ff..3a5f0e18fb 100644 --- a/lib/services/usb-livesync-service.ts +++ b/lib/services/usb-livesync-service.ts @@ -187,11 +187,13 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer }).future()(); } - protected preparePlatformForSync(platform: string) { - if (!this.$platformService.preparePlatform(platform).wait()) { - this.$logger.out("Verify that listed files are well-formed and try again the operation."); - return; - } + protected preparePlatformForSync(platform: string): IFuture { + return (() => { + if (!this.$platformService.preparePlatform(platform).wait()) { + this.$logger.out("Verify that listed files are well-formed and try again the operation."); + return; + } + }).future()(); } private resolveUsbLiveSyncService(platform: string, device: Mobile.IDevice): IPlatformSpecificUsbLiveSyncService {