Skip to content

Commit 597c0a0

Browse files
author
Brian Chen
authored
Make removeSanpshotsInSyncListener run on AQ (#3090)
1 parent 8bccfa5 commit 597c0a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/firestore/src/core/firestore_client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,10 @@ export class FirestoreClient {
497497
if (this.clientTerminated) {
498498
return;
499499
}
500-
this.eventMgr.removeSnapshotsInSyncListener(observer);
500+
this.asyncQueue.enqueueAndForget(() => {
501+
this.eventMgr.removeSnapshotsInSyncListener(observer);
502+
return Promise.resolve();
503+
});
501504
}
502505

503506
get clientTerminated(): boolean {

0 commit comments

Comments
 (0)