Skip to content

Commit

Permalink
Do not re-use current transaction when observation begins
Browse files Browse the repository at this point in the history
Resolves #1126
  • Loading branch information
jayaddison committed Oct 6, 2020
1 parent 0bf9b0f commit 1ec3e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/Dexie.Observable/src/Dexie.Observable.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function Observable(db) {
});
}
// Add new sync node or if this is a reopening of the database after a close() call, update it.
return db.transaction('rw', '_syncNodes', () => {
return Dexie.ignoreTransaction(() => {
return db._syncNodes
.where('isMaster').equals(1)
.first(currentMaster => {
Expand Down

0 comments on commit 1ec3e03

Please sign in to comment.