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 a03d5fb commit 74d6f2eCopy full SHA for 74d6f2e
packages/firestore/src/remote/remote_store.ts
@@ -283,6 +283,8 @@ export async function remoteStoreShutdown(
283
): Promise<void> {
284
const remoteStoreImpl = debugCast(remoteStore, RemoteStoreImpl);
285
logDebug(LOG_TAG, 'RemoteStore shutting down.');
286
+ remoteStoreImpl.sendWriteRequestsOperation?.cancel();
287
+ remoteStoreImpl.sendWriteRequestsOperation = null;
288
remoteStoreImpl.offlineCauses.add(OfflineCause.Shutdown);
289
await disableNetworkInternal(remoteStoreImpl);
290
remoteStoreImpl.connectivityMonitor.shutdown();
0 commit comments