Skip to content

Commit

Permalink
feat(replay): enable backwards replay
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Sep 20, 2021
1 parent 320dc60 commit 6018724
Show file tree
Hide file tree
Showing 11 changed files with 658 additions and 412 deletions.
5 changes: 4 additions & 1 deletion core/dbs/SessionDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ export default class SessionDb {
try {
this.batchInsert.immediate();
} catch (error) {
if (String(error).match(/attempt to write a readonly database/)) {
if (
String(error).match(/attempt to write a readonly database/) ||
String(error).match(/database is locked/)
) {
clearInterval(this.saveInterval);
}
throw error;
Expand Down
2 changes: 1 addition & 1 deletion core/injected-scripts/NodeTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class NodeTracker {
public static restore(id: number, node: Node): void {
node[this.nodeIdSymbol] = id;
this.watchedNodesById.set(id, node);
if (id > this.nextId) this.nextId = id;
if (id > this.nextId) this.nextId = id + 1;
}
}

Expand Down
Loading

0 comments on commit 6018724

Please sign in to comment.