Skip to content

Commit 42ea106

Browse files
Don't commit when aborted
1 parent 4fb0342 commit 42ea106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/local/simple_db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class SimpleDbTransaction {
126126
// speed up index DB processing if the event loop remains blocks.
127127
// eslint-disable-next-line @typescript-eslint/no-explicit-any
128128
const maybeV3IndexedDb = this.transaction as any;
129-
if (typeof maybeV3IndexedDb.commit === 'function') {
129+
if (!this.aborted && typeof maybeV3IndexedDb.commit === 'function') {
130130
maybeV3IndexedDb.commit();
131131
}
132132
}

0 commit comments

Comments
 (0)