Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit c9483cc

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix devices service not initialized
Fixes NativeScript/nativescript-cli#1210
1 parent a0f65eb commit c9483cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/usb-livesync-service-base.ts

+4
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ export class UsbLiveSyncServiceBase implements IUsbLiveSyncServiceBase {
167167

168168
private processRemovedFile(data: ILiveSyncData, filePath: string): void {
169169
this.$dispatcher.dispatch(() => (() => {
170+
if (!this.isInitialized) {
171+
this.$devicesService.initialize({ platform: data.platform, deviceId: this.$options.device }).wait();
172+
}
173+
170174
let action = (device: Mobile.IDevice) => {
171175
return (() => {
172176
let fileToSync = data.beforeBatchLiveSyncAction ? data.beforeBatchLiveSyncAction(filePath).wait() : filePath;

0 commit comments

Comments
 (0)