File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/services/livesync/playground Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ export class PreviewAppLiveSyncService extends EventEmitter implements IPreviewA
34
34
this . $errors . failWithoutHelp ( "Sending initial preview files without a specified device is not supported." ) ;
35
35
}
36
36
37
+ if ( this . deviceInitializationPromise [ device . id ] ) {
38
+ return this . deviceInitializationPromise [ device . id ] ;
39
+ }
40
+
37
41
if ( device . uniqueId ) {
38
42
await this . $analyticsService . trackEventActionInGoogleAnalytics ( {
39
43
action : TrackActionNames . PreviewAppData ,
@@ -42,10 +46,6 @@ export class PreviewAppLiveSyncService extends EventEmitter implements IPreviewA
42
46
} ) ;
43
47
}
44
48
45
- if ( this . deviceInitializationPromise [ device . id ] ) {
46
- return this . deviceInitializationPromise [ device . id ] ;
47
- }
48
-
49
49
this . deviceInitializationPromise [ device . id ] = this . getInitialFilesForDevice ( data , device ) ;
50
50
try {
51
51
const payloads = await this . deviceInitializationPromise [ device . id ] ;
You can’t perform that action at this time.
0 commit comments