Skip to content

Commit 8cef8da

Browse files
Mitko-Kerezovrosen-vladimirov
authored andcommitted
Emit liveSyncStopped for every device (#2900)
1 parent 0aa938a commit 8cef8da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/services/livesync/livesync-service.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export class LiveSyncService extends EventEmitter implements ILiveSyncService {
8383
await liveSyncProcessInfo.actionsChain;
8484
}
8585

86+
_.each(liveSyncProcessInfo.deviceDescriptors, descriptor => {
87+
this.emit(LiveSyncEvents.liveSyncStopped, { projectDir, deviceIdentifier: descriptor.identifier });
88+
});
89+
8690
liveSyncProcessInfo.isStopped = true;
8791
liveSyncProcessInfo.deviceDescriptors = [];
8892

@@ -93,8 +97,6 @@ export class LiveSyncService extends EventEmitter implements ILiveSyncService {
9397
projectData
9498
}
9599
});
96-
97-
this.emit(LiveSyncEvents.liveSyncStopped, { projectDir });
98100
}
99101
}
100102
}

0 commit comments

Comments
 (0)