We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093e022 commit 97fabd4Copy full SHA for 97fabd4
packages/firestore/src/core/component_provider.ts
@@ -166,10 +166,9 @@ export class MemoryOfflineComponentProvider
166
}
167
168
async terminate(): Promise<void> {
169
- if (this.gcScheduler) {
170
- this.gcScheduler.stop();
171
- }
172
- await this.sharedClientState.shutdown();
+ this.gcScheduler?.stop();
+ this.indexBackfillerScheduler?.stop();
+ this.sharedClientState.shutdown();
173
await this.persistence.shutdown();
174
175
@@ -485,9 +484,6 @@ export class OnlineComponentProvider {
485
484
486
487
await remoteStoreShutdown(this.remoteStore);
488
-
489
- if (this.datastore) {
490
- await this.datastore.terminate();
491
+ this.datastore?.terminate();
492
493
0 commit comments