Skip to content

Commit 40962f9

Browse files
committed
Update sync_engine_impl.ts
1 parent 232ae38 commit 40962f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/firestore/src/core/sync_engine_impl.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ async function allocateTargetAndMaybeListen(
361361
status === 'current',
362362
targetData.resumeToken
363363
);
364+
}
364365

365-
if (syncEngineImpl.isPrimaryClient && shouldListenToRemote) {
366-
remoteStoreListen(syncEngineImpl.remoteStore, targetData);
367-
}
368-
369-
return viewSnapshot;
366+
if (syncEngineImpl.isPrimaryClient && shouldListenToRemote) {
367+
remoteStoreListen(syncEngineImpl.remoteStore, targetData);
370368
}
369+
370+
return viewSnapshot;
371371
}
372372

373373
/**

0 commit comments

Comments
 (0)