mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
EventIndex: Catch errors when removing a crawler checkpoint.
This commit is contained in:
parent
9d343a4705
commit
0e5fec5feb
1 changed files with 5 additions and 1 deletions
|
@ -356,7 +356,11 @@ export default class EventIndex extends EventEmitter {
|
||||||
console.log("EventIndex: Done with the checkpoint", checkpoint);
|
console.log("EventIndex: Done with the checkpoint", checkpoint);
|
||||||
// We got to the start/end of our timeline, lets just
|
// We got to the start/end of our timeline, lets just
|
||||||
// delete our checkpoint and go back to sleep.
|
// delete our checkpoint and go back to sleep.
|
||||||
|
try {
|
||||||
await indexManager.removeCrawlerCheckpoint(checkpoint);
|
await indexManager.removeCrawlerCheckpoint(checkpoint);
|
||||||
|
} catch (e) {
|
||||||
|
console.log("EventIndex: Error removing checkpoint", checkpoint, e);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue