Skip to content

Commit

Permalink
Resolves issue reproduced in PR #1329
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Jun 6, 2021
1 parent 88180b0 commit 2a484e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/classes/transaction/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ export class Transaction implements ITransaction {
* http://dexie.org/docs/Transaction/Transaction.abort()
*/
abort() {
this.active && this._reject(new exceptions.Abort());
this.active = false;
if (this.idbtrans) try {this.idbtrans.abort();} catch(_){}
}

/** Transaction.table()
Expand Down

0 comments on commit 2a484e9

Please sign in to comment.